You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by st...@apache.org on 2011/10/24 22:04:33 UTC

svn commit: r1188342 [2/2] - in /myfaces/core/trunk/api/src/main/java/javax/faces: ./ application/ component/ component/behavior/ context/ event/

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java?rev=1188342&r1=1188341&r2=1188342&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java Mon Oct 24 20:04:32 2011
@@ -28,7 +28,10 @@ import javax.faces.component.StateHolder
 import javax.faces.context.FacesContext;
 
 /**
- * See Javadoc of <a href="https://javaserverfaces.dev.java.net/nonav/docs/2.0/javadocs/javax/faces/event/MethodExpressionActionListener.html">JSF Specification</a>
+ * See Javadoc of
+ * <a href=
+ * "https://javaserverfaces.dev.java.net/nonav/docs/2.0/javadocs/javax/faces/event/MethodExpressionActionListener.html">
+ * JSF Specification</a>
  * 
  * @author Stan Silvert
  */
@@ -55,7 +58,8 @@ public class MethodExpressionActionListe
         _createZeroArgsMethodExpression(methodExpressionOneArg); 
     }
 
-    public MethodExpressionActionListener(MethodExpression methodExpressionOneArg, MethodExpression methodExpressionZeroArg)
+    public MethodExpressionActionListener(MethodExpression methodExpressionOneArg,
+                                          MethodExpression methodExpressionZeroArg)
     {
         this.methodExpressionOneArg = methodExpressionOneArg;
         if (methodExpressionZeroArg != null) 
@@ -86,10 +90,12 @@ public class MethodExpressionActionListe
         }
         catch (ELException e)
         {
-            // "... If that fails for any reason, throw an AbortProcessingException, including the cause of the failure ..."
+            // "... If that fails for any reason, throw an AbortProcessingException,
+            // including the cause of the failure ..."
             // -= Leonardo Uribe =- after discussing this topic on MYFACES-3199, the conclusion is the part is an advice
             // for the developer implementing a listener in a method expressions that could be wrapped by this class.
-            // The spec wording is poor but, to keep this coherently with ExceptionHandler API, the spec and code on UIViewRoot we need:
+            // The spec wording is poor but, to keep this coherently with ExceptionHandler API,
+            // the spec and code on UIViewRoot we need:
             // 2a) "exception is instance of APE or any of the causes of the exception are an APE, 
             // DON'T publish ExceptionQueuedEvent and terminate processing for current event".
             // 2b) for any other exception publish ExceptionQueuedEvent and continue broadcast processing.
@@ -169,7 +175,8 @@ public class MethodExpressionActionListe
      * Creates a {@link MethodExpression} with no params and with the same Expression as 
      * param <code>methodExpression</code>
      * <b>WARNING!</b> This method creates new {@link MethodExpression} with expressionFactory.createMethodExpression.
-     * That means is not decorating MethodExpression passed as parameter - support for EL VariableMapper will not be available!
+     * That means is not decorating MethodExpression passed as parameter -
+     * support for EL VariableMapper will not be available!
      * This is a problem when using facelets and <ui:decorate/> with EL params (see MYFACES-2541 for details).
      */
     private void _createZeroArgsMethodExpression(MethodExpression methodExpression)

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/event/PostConstructCustomScopeEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/event/PostConstructCustomScopeEvent.java?rev=1188342&r1=1188341&r2=1188342&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/event/PostConstructCustomScopeEvent.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/event/PostConstructCustomScopeEvent.java Mon Oct 24 20:04:32 2011
@@ -28,15 +28,18 @@ package javax.faces.event;
  * @since 2.0
  */
 
-public class PostConstructCustomScopeEvent extends SystemEvent {
-    public PostConstructCustomScopeEvent(ScopeContext source) {
+public class PostConstructCustomScopeEvent extends SystemEvent
+{
+    public PostConstructCustomScopeEvent(ScopeContext source)
+    {
         super(source);
     }
 
     /**
      * @return the source as scope context representation for this event
      */
-    public ScopeContext getContext() {
+    public ScopeContext getContext()
+    {
         return (ScopeContext) source;
     }
 }

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/event/ScopeContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/event/ScopeContext.java?rev=1188342&r1=1188341&r2=1188342&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/event/ScopeContext.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/event/ScopeContext.java Mon Oct 24 20:04:32 2011
@@ -28,12 +28,14 @@ import java.util.Map;
  * @since 2.0
  */
 
-public class ScopeContext {
+public class ScopeContext
+{
 
     String _scopeName;
     Map<String, Object> _scope;
 
-    public ScopeContext(String scopeName, Map<String, Object> scope) {
+    public ScopeContext(String scopeName, Map<String, Object> scope)
+    {
         _scopeName = scopeName;
         _scope = scope;
     }
@@ -41,14 +43,16 @@ public class ScopeContext {
     /**
      * @return the scope name stored in the context
      */
-    public String getScopeName() {
+    public String getScopeName()
+    {
         return _scopeName;
     }
 
     /**
      * @return the scope data
      */
-    public Map<String, Object> getScope() {
+    public Map<String, Object> getScope()
+    {
         return _scope;
     }
 }