[seam-commits] Seam SVN: r9292 - trunk/seam-gen/src.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Oct 14 02:12:29 EDT 2008


Author: dan.j.allen
Date: 2008-10-14 02:12:29 -0400 (Tue, 14 Oct 2008)
New Revision: 9292

Modified:
   trunk/seam-gen/src/Action.java
   trunk/seam-gen/src/ActionBean.java
   trunk/seam-gen/src/ActionJavaBean.java
   trunk/seam-gen/src/Authenticator.java
   trunk/seam-gen/src/Conversation.java
   trunk/seam-gen/src/ConversationBean.java
   trunk/seam-gen/src/ConversationJavaBean.java
   trunk/seam-gen/src/Entity.java
   trunk/seam-gen/src/EntityHome.java
   trunk/seam-gen/src/FormAction.java
   trunk/seam-gen/src/FormActionBean.java
   trunk/seam-gen/src/FormActionJavaBean.java
   trunk/seam-gen/src/Query.java
Log:
fix sloppy formatting


Modified: trunk/seam-gen/src/Action.java
===================================================================
--- trunk/seam-gen/src/Action.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/Action.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -5,8 +5,9 @@
 @Local
 public interface @interfaceName@ {
 
-  //seam-gen method
-  public void @methodName@();
+    // seam-gen method
+    public void @methodName@();
 
-    //add additional interface methods here
-}
\ No newline at end of file
+    // add additional interface methods here
+
+}

Modified: trunk/seam-gen/src/ActionBean.java
===================================================================
--- trunk/seam-gen/src/ActionBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/ActionBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -17,11 +17,11 @@
 
     public void @methodName@()
     {
-        //implement your business logic here
+        // implement your business logic here
         log.info("@componentName at .@methodName@() action called");
         facesMessages.add("@methodName@");
     }
 
-    //add additional action methods
+    // add additional action methods
 
 }

Modified: trunk/seam-gen/src/ActionJavaBean.java
===================================================================
--- trunk/seam-gen/src/ActionJavaBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/ActionJavaBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -15,11 +15,11 @@
 
     public void @methodName@()
     {
-        //implement your business logic here
+        // implement your business logic here
         log.info("@componentName at .@methodName@() action called");
         facesMessages.add("@methodName@");
     }
 
-   //add additional action methods
+    // add additional action methods
 
 }

Modified: trunk/seam-gen/src/Authenticator.java
===================================================================
--- trunk/seam-gen/src/Authenticator.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/Authenticator.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -7,7 +7,6 @@
 import org.jboss.seam.security.Credentials;
 import org.jboss.seam.security.Identity;
 
-
 @Name("authenticator")
 public class Authenticator
 {
@@ -29,4 +28,5 @@
         }
         return false;
     }
+
 }

Modified: trunk/seam-gen/src/Conversation.java
===================================================================
--- trunk/seam-gen/src/Conversation.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/Conversation.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -5,12 +5,13 @@
 @Local
 public interface @interfaceName@ {
 
-  //seam-gen methods
-  public String begin();
-  public String increment();
-  public String end();
-  public int getValue();
-  public void destroy();
+    // seam-gen methods
+    public String begin();
+    public String increment();
+    public String end();
+    public int getValue();
+    public void destroy();
+  
+    // add additional interface methods here
 
-   //add additional interface methods here
-}
\ No newline at end of file
+}

Modified: trunk/seam-gen/src/ConversationBean.java
===================================================================
--- trunk/seam-gen/src/ConversationBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/ConversationBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -13,40 +13,41 @@
 @Name("@componentName@")
 public class @beanName@ implements @interfaceName@ {
 
-   @Logger private Log log;
+    @Logger private Log log;
 
-   private int value;
+    private int value;
 
-  @Begin
-  public String begin()
-  {
-    //implement your begin conversation business logic
-    log.info("beginning conversation");
-    return "success";
-  }
-
-  public String increment()
-  {
-    log.info("incrementing");
-    value++;
-    return "success";
-  }
-
-  //add additional action methods that participate in this conversation
-
-  @End
-  public String end()
-  {
-        //implement your end conversation business logic
+    @Begin
+    public String begin()
+    {
+        // implement your begin conversation business logic
+        log.info("beginning conversation");
+        return "success";
+    }
+  
+    public String increment()
+    {
+        log.info("incrementing");
+        value++;
+        return "success";
+    }
+  
+    // add additional action methods that participate in this conversation
+  
+    @End
+    public String end()
+    {
+        // implement your end conversation business logic
         log.info("ending conversation");
-    return "home";
-  }
+        return "home";
+    }
+  
+    public int getValue()
+    {
+        return value;
+    }
+  
+    @Destroy @Remove
+    public void destroy() {}
 
-  public int getValue()
-  {
-    return value;
-  }
-
-  @Destroy @Remove
-  public void destroy() {}
 }

Modified: trunk/seam-gen/src/ConversationJavaBean.java
===================================================================
--- trunk/seam-gen/src/ConversationJavaBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/ConversationJavaBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -13,38 +13,38 @@
 @Name("@componentName@")
 public class @interfaceName@ {
 
-   @Logger private Log log;
+    @Logger private Log log;
 
-   private int value;
+    private int value;
 
-  @Begin
-  public String begin()
-  {
-    //implement your begin conversation business logic
-    log.info("beginning conversation");
-    return "success";
-  }
-
-  public String increment()
-  {
-    log.info("incrementing");
-    value++;
-    return "success";
-  }
-
-  //add additional action methods that participate in this conversation
-
-  @End
-  public String end()
-  {
-        //implement your end conversation business logic
+    @Begin
+    public String begin()
+    {
+        // implement your begin conversation business logic
+        log.info("beginning conversation");
+        return "success";
+    }
+  
+    public String increment()
+    {
+        log.info("incrementing");
+        value++;
+        return "success";
+    }
+  
+    // add additional action methods that participate in this conversation
+  
+    @End
+    public String end()
+    {
+        // implement your end conversation business logic
         log.info("ending conversation");
-    return "home";
-  }
+        return "home";
+    }
+  
+    public int getValue()
+    {
+        return value;
+    }
 
-  public int getValue()
-  {
-    return value;
-  }
-
 }

Modified: trunk/seam-gen/src/Entity.java
===================================================================
--- trunk/seam-gen/src/Entity.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/Entity.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -10,39 +10,39 @@
 @Entity
 public class @entityName@ implements Serializable {
 
-  //seam-gen attributes (you should probably edit these)
-  private Long id;
-  private Integer version;
-  private String name;
+    // seam-gen attributes (you should probably edit these)
+    private Long id;
+    private Integer version;
+    private String name;
 
-    //add additional entity attributes
+    // add additional entity attributes
 
-  //seam-gen attribute getters/setters with annotations (you probably should edit)
+    // seam-gen attribute getters/setters with annotations (you probably should edit)
 
-  @Id @GeneratedValue
-  public Long getId() {
-       return id;
-  }
+    @Id @GeneratedValue
+    public Long getId() {
+        return id;
+    }
 
-  public void setId(Long id) {
-       this.id = id;
-  }
+    public void setId(Long id) {
+        this.id = id;
+    }
 
-  @Version
-  public Integer getVersion() {
-       return version;
-  }
+    @Version
+    public Integer getVersion() {
+        return version;
+    }
 
-  private void setVersion(Integer version) {
-       this.version = version;
-  }
+    private void setVersion(Integer version) {
+        this.version = version;
+    }
 
-  @Length(max=20)
-  public String getName() {
-       return name;
-  }
+    @Length(max = 20)
+    public String getName() {
+        return name;
+    }
 
-  public void setName(String name) {
-       this.name = name;
-  }
+    public void setName(String name) {
+        this.name = name;
+    }
 }

Modified: trunk/seam-gen/src/EntityHome.java
===================================================================
--- trunk/seam-gen/src/EntityHome.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/EntityHome.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -10,14 +10,13 @@
 @Name("@homeName@")
 public class @entityName at Home extends EntityHome<@entityName@>
 {
-
     @RequestParameter
     Long @componentName at Id;
 
     @Override
     public Object getId()
     {
-        if (@componentName at Id==null)
+        if (@componentName at Id == null)
         {
             return super.getId();
         }

Modified: trunk/seam-gen/src/FormAction.java
===================================================================
--- trunk/seam-gen/src/FormAction.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/FormAction.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -5,10 +5,10 @@
 @Local
 public interface @interfaceName@ {
 
-  public void @methodName@();
-  public String getValue();
-  public void setValue(String value);
-  public void destroy();
+    public void @methodName@();
+    public String getValue();
+    public void setValue(String value);
+    public void destroy();
 
-   //add additional interface methods here
-}
\ No newline at end of file
+    // add additional interface methods here
+}

Modified: trunk/seam-gen/src/FormActionBean.java
===================================================================
--- trunk/seam-gen/src/FormActionBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/FormActionBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -21,15 +21,15 @@
     private String value;
 
     public void @methodName@()
-   {
-        //implement your business logic here
+    {
+        // implement your business logic here
         log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
         facesMessages.add("@methodName@ #{@componentName at .value}");
-   }
+    }
 
-   //add additional action methods
+    // add additional action methods
 
-    @Length(max=10)
+    @Length(max = 10)
     public String getValue()
     {
         return value;

Modified: trunk/seam-gen/src/FormActionJavaBean.java
===================================================================
--- trunk/seam-gen/src/FormActionJavaBean.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/FormActionJavaBean.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -16,24 +16,24 @@
 
     private String value;
 
-  public void @methodName@()
-  {
-    //implement your business logic here
-    log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
-    facesMessages.add("@methodName@ #{@componentName at .value}");
-  }
+    public void @methodName@()
+    {
+        // implement your business logic here
+        log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
+        facesMessages.add("@methodName@ #{@componentName at .value}");
+    }
 
-  //add additional action methods
-
-  @Length(max=10)
-  public String getValue()
-  {
-    return value;
-  }
-
-  public void setValue(String value)
-  {
-    this.value = value;
-  }
-
+    // add additional action methods
+  
+    @Length(max = 10)
+    public String getValue()
+    {
+        return value;
+    }
+  
+    public void setValue(String value)
+    {
+        this.value = value;
+    }
+  
 }

Modified: trunk/seam-gen/src/Query.java
===================================================================
--- trunk/seam-gen/src/Query.java	2008-10-14 05:53:26 UTC (rev 9291)
+++ trunk/seam-gen/src/Query.java	2008-10-14 06:12:29 UTC (rev 9292)
@@ -23,5 +23,5 @@
     public Integer getMaxResults() {
         return 25;
     }
+
 }
-




More information about the seam-commits mailing list