[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...

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


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

  Modified:    src/main/org/jboss/seam/annotations   Factory.java
  Added:       src/main/org/jboss/seam/annotations   AutoCreate.java
  Log:
  @AutoCreate
  
  Revision  Changes    Path
  1.7       +8 -1      jboss-seam/src/main/org/jboss/seam/annotations/Factory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Factory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/Factory.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- Factory.java	10 Oct 2006 03:48:19 -0000	1.6
  +++ Factory.java	26 Feb 2007 20:31:10 -0000	1.7
  @@ -1,4 +1,4 @@
  -//$Id: Factory.java,v 1.6 2006/10/10 03:48:19 gavin Exp $
  +//$Id: Factory.java,v 1.7 2007/02/26 20:31:10 gavin Exp $
   package org.jboss.seam.annotations;
   
   import static java.lang.annotation.ElementType.METHOD;
  @@ -50,4 +50,11 @@
       * @return the scope to outject any returned value
       */
      ScopeType scope() default ScopeType.UNSPECIFIED;
  +   /**
  +     * Specifies that this factory method should be automatically
  +     * called whenever the variable is asked for, even if @In does
  +     * not specify create=true.
  +     * 
  +    */
  +   boolean autoCreate() default false;
   }
  
  
  
  1.1      date: 2007/02/26 20:31:10;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/AutoCreate.java
  
  Index: AutoCreate.java
  ===================================================================
  package org.jboss.seam.annotations;
  
  import static java.lang.annotation.ElementType.TYPE;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * Specifies that this component should be automatically
   * instantiated whenever it is asked for, even if @In does
   * not specify create=true.
   * 
   * @author Gavin King
   *
   */
  @Target(TYPE)
  @Retention(RUNTIME)
  @Documented
  public @interface AutoCreate {}
  
  
  



More information about the jboss-cvs-commits mailing list