myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcrawf...@apache.org
Subject svn commit: r1098767 - in /myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces: generator/component/ parse/
Date Mon, 02 May 2011 19:52:52 GMT
Author: gcrawford
Date: Mon May  2 19:52:52 2011
New Revision: 1098767

URL: http://svn.apache.org/viewvc?rev=1098767&view=rev
Log:
TRINIDAD-2094 support adding mutable information to property key in the trinidad tools

Modified:
    myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/TrinidadComponentGenerator.java
    myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/FacesConfigParser.java
    myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/PropertyBean.java

Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/TrinidadComponentGenerator.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/TrinidadComponentGenerator.java?rev=1098767&r1=1098766&r2=1098767&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/TrinidadComponentGenerator.java
(original)
+++ myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/TrinidadComponentGenerator.java
Mon May  2 19:52:52 2011
@@ -421,6 +421,11 @@ public class TrinidadComponentGenerator 
       caps.add("PropertyKey.CAP_LIST");
     }
 
+    if (property.isMutable())
+    {
+      caps.add("PropertyKey.CAP_MUTABLE");
+    }
+
     if (caps.isEmpty())
       return null;
 

Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/FacesConfigParser.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/FacesConfigParser.java?rev=1098767&r1=1098766&r2=1098767&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/FacesConfigParser.java
(original)
+++ myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/FacesConfigParser.java
Mon May  2 19:52:52 2011
@@ -84,7 +84,7 @@ public class FacesConfigParser
     SAXParserFactory spf = SAXParserFactory.newInstance();
     spf.setNamespaceAware(true);
     // requires JAXP 1.3, in JavaSE 5.0
-    //spf.setXIncludeAware(true);
+    // spf.setXIncludeAware(true);
     Digester digester = new Digester(spf.newSAXParser());
     digester.setNamespaceAware(true);
 
@@ -295,6 +295,8 @@ public class FacesConfigParser
     digester.addBeanPropertySetter("faces-config/component/property/property-extension/transient");
     digester.addBeanPropertySetter("faces-config/component/property/property-extension/literal-only",
                                    "literalOnly");
+    digester.addBeanPropertySetter("faces-config/component/property/property-extension/mutable",
+                                   "mutable");
     digester.addBeanPropertySetter("faces-config/component/property/property-extension/enum",
                                    "enum");
     digester.addBeanPropertySetter("faces-config/component/property/property-extension/alternate-class",

Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/PropertyBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/PropertyBean.java?rev=1098767&r1=1098766&r2=1098767&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/PropertyBean.java
(original)
+++ myfaces/trinidad-maven/branches/2.0.x-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/parse/PropertyBean.java
Mon May  2 19:52:52 2011
@@ -130,6 +130,27 @@ public class PropertyBean extends Attrib
   }
 
   /**
+   * Sets the mutable flag of this property.
+   *
+   * @param mutable  the property mutable flag
+   */
+  public void setMutable(
+    boolean mutable)
+  {
+    _mutable = mutable;
+  }
+
+  /**
+   * Returns mutable flag of this property.
+   *
+   * @return  the property mutable flag
+   */
+  public boolean isMutable()
+  {
+    return _mutable;
+  }
+
+  /**
    * Sets the transient flag of this property.
    *
    * @param transient_ the property transient flag
@@ -551,6 +572,7 @@ public class PropertyBean extends Attrib
   private boolean _stateHolder;
   private boolean _transient;
   private boolean _list;
+  private boolean _mutable;
   private boolean _tagAttributeExcluded;
   private boolean _enum;
   private boolean _useMaxTime;



Mime
View raw message