[jboss-cvs] jboss-seam/examples/blog/src/actions ...

Gavin King gavin.king at jboss.com
Mon Feb 26 15:31:11 EST 2007


  User: gavin   
  Date: 07/02/26 15:31:11

  Modified:    examples/blog/src/actions       Authenticator.java
                        BlogEntryService.java BlogService.java
                        EntryAction.java PostAction.java SearchService.java
  Log:
  use @AutoCreate
  
  Revision  Changes    Path
  1.2       +1 -1      jboss-seam/examples/blog/src/actions/Authenticator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Authenticator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/Authenticator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- Authenticator.java	14 Feb 2007 13:55:00 -0000	1.1
  +++ Authenticator.java	26 Feb 2007 20:31:11 -0000	1.2
  @@ -13,7 +13,7 @@
   @Name("authenticator")
   public class Authenticator
   {
  -   @In(create=true) Blog blog;
  +   @In Blog blog;
      @In Identity identity;
      
      public boolean authenticate()
  
  
  
  1.2       +1 -1      jboss-seam/examples/blog/src/actions/BlogEntryService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogEntryService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/BlogEntryService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- BlogEntryService.java	30 Sep 2006 19:59:34 -0000	1.1
  +++ BlogEntryService.java	26 Feb 2007 20:31:11 -0000	1.2
  @@ -14,7 +14,7 @@
   public class BlogEntryService
   {
      
  -   @In(create=true) Blog blog;
  +   @In Blog blog;
      
      @Factory("blogEntry")
      public BlogEntry createBlogEntry()
  
  
  
  1.6       +2 -0      jboss-seam/examples/blog/src/actions/BlogService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/BlogService.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- BlogService.java	17 Nov 2006 03:00:16 -0000	1.5
  +++ BlogService.java	26 Feb 2007 20:31:11 -0000	1.6
  @@ -3,6 +3,7 @@
   import javax.persistence.EntityManager;
   
   import org.jboss.seam.ScopeType;
  +import org.jboss.seam.annotations.AutoCreate;
   import org.jboss.seam.annotations.In;
   import org.jboss.seam.annotations.Name;
   import org.jboss.seam.annotations.Scope;
  @@ -17,6 +18,7 @@
    */
   @Name("blog")
   @Scope(ScopeType.STATELESS)
  + at AutoCreate
   public class BlogService 
   {
      
  
  
  
  1.13      +1 -1      jboss-seam/examples/blog/src/actions/EntryAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EntryAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/EntryAction.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- EntryAction.java	17 Nov 2006 03:00:16 -0000	1.12
  +++ EntryAction.java	26 Feb 2007 20:31:11 -0000	1.13
  @@ -20,7 +20,7 @@
   @Scope(STATELESS)
   public class EntryAction
   {
  -   @In(create=true) Blog blog;
  +   @In Blog blog;
      
      @Out BlogEntry blogEntry;
      
  
  
  
  1.11      +1 -1      jboss-seam/examples/blog/src/actions/PostAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PostAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/PostAction.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- PostAction.java	9 Jan 2007 08:25:38 -0000	1.10
  +++ PostAction.java	26 Feb 2007 20:31:11 -0000	1.11
  @@ -25,7 +25,7 @@
   @Scope(ScopeType.STATELESS)
   public class PostAction
   {
  -   @In(create=true) Blog blog;
  +   @In Blog blog;
      
      @In EntityManager entityManager;
      
  
  
  
  1.5       +1 -1      jboss-seam/examples/blog/src/actions/SearchService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SearchService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/SearchService.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- SearchService.java	12 Oct 2006 02:49:35 -0000	1.4
  +++ SearchService.java	26 Feb 2007 20:31:11 -0000	1.5
  @@ -19,7 +19,7 @@
   public class SearchService 
   {
      
  -   @In(create=true)
  +   @In
      private EntityManager entityManager;
      
      private String searchPattern;
  
  
  



More information about the jboss-cvs-commits mailing list