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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Nov 24 12:14:35 EST 2008


Author: dan.j.allen
Date: 2008-11-24 12:14:35 -0500 (Mon, 24 Nov 2008)
New Revision: 9620

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
Log:
whitespace
use consistent formatting
use StatusMessages rather than FacesMessages

Modified: trunk/seam-gen/src/Action.java
===================================================================
--- trunk/seam-gen/src/Action.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/Action.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -3,8 +3,8 @@
 import javax.ejb.Local;
 
 @Local
-public interface @interfaceName@ {
-
+public interface @interfaceName@
+{
     // seam-gen method
     public void @methodName@();
 

Modified: trunk/seam-gen/src/ActionBean.java
===================================================================
--- trunk/seam-gen/src/ActionBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/ActionBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -5,21 +5,21 @@
 import org.jboss.seam.annotations.In;
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.log.Log;
-import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.international.StatusMessages;
 
 @Stateless
 @Name("@componentName@")
-public class @beanName@ implements @interfaceName@ {
-
+public class @beanName@ implements @interfaceName@
+{
     @Logger private Log log;
 
-    @In FacesMessages facesMessages;
+    @In StatusMessages statusMessages;
 
     public void @methodName@()
     {
         // implement your business logic here
         log.info("@componentName at .@methodName@() action called");
-        facesMessages.add("@methodName@");
+        statusMessages.add("@methodName@");
     }
 
     // add additional action methods

Modified: trunk/seam-gen/src/ActionJavaBean.java
===================================================================
--- trunk/seam-gen/src/ActionJavaBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/ActionJavaBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -4,20 +4,20 @@
 import org.jboss.seam.annotations.In;
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.log.Log;
-import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.international.StatusMessages;
 
 @Name("@componentName@")
-public class @interfaceName@ {
-
+public class @interfaceName@
+{
     @Logger private Log log;
 
-    @In FacesMessages facesMessages;
+    @In StatusMessages statusMessages;
 
     public void @methodName@()
     {
         // implement your business logic here
         log.info("@componentName at .@methodName@() action called");
-        facesMessages.add("@methodName@");
+        statusMessages.add("@methodName@");
     }
 
     // add additional action methods

Modified: trunk/seam-gen/src/Authenticator.java
===================================================================
--- trunk/seam-gen/src/Authenticator.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/Authenticator.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -10,7 +10,7 @@
 @Name("authenticator")
 public class Authenticator
 {
-    @Logger Log log;
+    @Logger private Log log;
 
     @In Identity identity;
     @In Credentials credentials;

Modified: trunk/seam-gen/src/Conversation.java
===================================================================
--- trunk/seam-gen/src/Conversation.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/Conversation.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -3,9 +3,8 @@
 import javax.ejb.Local;
 
 @Local
-public interface @interfaceName@ {
-
-    // seam-gen methods
+public interface @interfaceName@
+{
     public String begin();
     public String increment();
     public String end();

Modified: trunk/seam-gen/src/ConversationBean.java
===================================================================
--- trunk/seam-gen/src/ConversationBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/ConversationBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -12,8 +12,8 @@
 
 @Stateful
 @Name("@componentName@")
-public class @beanName@ implements @interfaceName@, Serializable {
-
+public class @beanName@ implements @interfaceName@, Serializable
+{
     @Logger private Log log;
 
     private int value;

Modified: trunk/seam-gen/src/ConversationJavaBean.java
===================================================================
--- trunk/seam-gen/src/ConversationJavaBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/ConversationJavaBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -12,8 +12,8 @@
 
 @Scope(CONVERSATION)
 @Name("@componentName@")
-public class @interfaceName@ implements Serializable {
-
+public class @interfaceName@ implements Serializable
+{
     @Logger private Log log;
 
     private int value;

Modified: trunk/seam-gen/src/Entity.java
===================================================================
--- trunk/seam-gen/src/Entity.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/Entity.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -8,8 +8,8 @@
 import org.hibernate.validator.Length;
 
 @Entity
-public class @entityName@ implements Serializable {
-
+public class @entityName@ implements Serializable
+{
     // seam-gen attributes (you should probably edit these)
     private Long id;
     private Integer version;
@@ -45,4 +45,5 @@
     public void setName(String name) {
         this.name = name;
     }
+
 }

Modified: trunk/seam-gen/src/EntityHome.java
===================================================================
--- trunk/seam-gen/src/EntityHome.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/EntityHome.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -10,8 +10,7 @@
 @Name("@homeName@")
 public class @entityName at Home extends EntityHome<@entityName@>
 {
-    @RequestParameter
-    Long @componentName at Id;
+    @RequestParameter Long @componentName at Id;
 
     @Override
     public Object getId()

Modified: trunk/seam-gen/src/FormAction.java
===================================================================
--- trunk/seam-gen/src/FormAction.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/FormAction.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -3,12 +3,13 @@
 import javax.ejb.Local;
 
 @Local
-public interface @interfaceName@ {
-
+public interface @interfaceName@
+{
     public void @methodName@();
     public String getValue();
     public void setValue(String value);
     public void destroy();
 
     // add additional interface methods here
+
 }

Modified: trunk/seam-gen/src/FormActionBean.java
===================================================================
--- trunk/seam-gen/src/FormActionBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/FormActionBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -7,16 +7,16 @@
 import org.jboss.seam.annotations.Destroy;
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.log.Log;
-import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.international.StatusMessages;
 import org.hibernate.validator.Length;
 
 @Stateful
 @Name("@componentName@")
-public class @beanName@ implements @interfaceName@ {
-
+public class @beanName@ implements @interfaceName@
+{
     @Logger private Log log;
 
-    @In FacesMessages facesMessages;
+    @In StatusMessages statusMessages;
 
     private String value;
 
@@ -24,7 +24,7 @@
     {
         // implement your business logic here
         log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
-        facesMessages.add("@methodName@ #{@componentName at .value}");
+        statusMessages.add("@methodName@ #{@componentName at .value}");
     }
 
     // add additional action methods

Modified: trunk/seam-gen/src/FormActionJavaBean.java
===================================================================
--- trunk/seam-gen/src/FormActionJavaBean.java	2008-11-24 17:12:58 UTC (rev 9619)
+++ trunk/seam-gen/src/FormActionJavaBean.java	2008-11-24 17:14:35 UTC (rev 9620)
@@ -4,15 +4,15 @@
 import org.jboss.seam.annotations.In;
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.log.Log;
-import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.international.StatusMessages;
 import org.hibernate.validator.Length;
 
 @Name("@componentName@")
-public class @interfaceName@ {
-
+public class @interfaceName@
+{
     @Logger private Log log;
 
-    @In FacesMessages facesMessages;
+    @In StatusMessages statusMessages;
 
     private String value;
 
@@ -20,7 +20,7 @@
     {
         // implement your business logic here
         log.info("@componentName at .@methodName@() action called with: #{@componentName at .value}");
-        facesMessages.add("@methodName@ #{@componentName at .value}");
+        statusMessages.add("@methodName@ #{@componentName at .value}");
     }
 
     // add additional action methods




More information about the seam-commits mailing list