[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Wed Jul 18 10:37:29 EDT 2007
User: gavin
Date: 07/07/18 10:37:29
Modified: src/main/org/jboss/seam/annotations AutoCreate.java
Log:
global imports JBSEAM-1693
Revision Changes Path
1.2 +5 -3 jboss-seam/src/main/org/jboss/seam/annotations/AutoCreate.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AutoCreate.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/AutoCreate.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- AutoCreate.java 26 Feb 2007 20:31:10 -0000 1.1
+++ AutoCreate.java 18 Jul 2007 14:37:29 -0000 1.2
@@ -1,6 +1,7 @@
package org.jboss.seam.annotations;
import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
@@ -8,14 +9,15 @@
import java.lang.annotation.Target;
/**
- * Specifies that this component should be automatically
+ * Specifies that the annotated component should be automatically
* instantiated whenever it is asked for, even if @In does
- * not specify create=true.
+ * not specify create=true. If this annotation appears at the
+ * package level, it applies to all components in the package.
*
* @author Gavin King
*
*/
- at Target(TYPE)
+ at Target({TYPE, PACKAGE})
@Retention(RUNTIME)
@Documented
public @interface AutoCreate {}
More information about the jboss-cvs-commits
mailing list