myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "MyfacesBuilderPlugin" by LeonardoUribe
Date Sun, 16 Mar 2008 20:58:03 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by LeonardoUribe:
http://wiki.apache.org/myfaces/MyfacesBuilderPlugin

------------------------------------------------------------------------------
  /**
   * @mfp.component 
   *   class = "org.apache.myfaces.component.Component"
-  *   superclass = "org.apache.myfaces.component.ComponentParent"
+  *   superClass = "org.apache.myfaces.component.ComponentParent"
   *   type = "org.apache.myfaces.Component"
   *   supertype = "org.apache.myfaces.ComponentParent"
   *   family = "javax.faces.Data"
@@ -66, +66 @@

  
  /**
   * @mfp.component 
-  *   class = "org.apache.myfaces.component.Component"
-  *   superclass = "org.apache.myfaces.component.AbstractComponent"
+  * //NO class and superClass attributes defined
+  *
  **/
- public class AbstractComponent extends ComponentParent {
+ public class Component extends ComponentParent {
- 
- }
- 
- Generates:
- 
- /**
- **/
- public class Component extends AbsractComponent{
  
  }
  
@@ -89, +81 @@

  
  {{{
  
+ /**
+  * @mfp.component 
+  *   class = "org.apache.myfaces.component.Component"
+  *   superClass = "org.apache.myfaces.component.AbstractComponent" //The superclass is the
same class
+ **/
+ public class AbstractComponent extends ComponentParent {
+ 
+   public void myMethod(){
+     /*.........*/
+   }
+ 
+ }
+ 
+ Generates:
+ 
+ /**
+ **/
+ public class Component extends AbstractComponent{
+ 
+ }
+ 
  }}}
  
   3. Annotated class is a private class that is used as template (never instantiated, just
the code is copied inside the generated class)
  
  {{{
+ 
+ /**
+  * @mfp.component 
+  *   class = "org.apache.myfaces.component.Component"
+  *   superClass = "org.apache.myfaces.component.ComponentParent" //The superClass is a different
class
+ **/
+ class _AbstractComponent extends ComponentParent {
+ 
+   public void myMethod(){
+     /*.........*/
+   }
+ 
+ }
+ 
+ Generates:
+ 
+ /**
+ **/
+ public class Component extends ComponentParent{
+ 
+   public void myMethod(){
+     /*.........*/
+   }
+ 
+ }
  
  }}}
  

Mime
View raw message