[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Mon Feb 26 15:31:09 EST 2007
User: gavin
Date: 07/02/26 15:31:09
Modified: src/main/org/jboss/seam Component.java
Log:
@AutoCreate
Revision Changes Path
1.241 +4 -0 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -b -r1.240 -r1.241
--- Component.java 25 Feb 2007 19:06:23 -0000 1.240
+++ Component.java 26 Feb 2007 20:31:09 -0000 1.241
@@ -493,6 +493,10 @@
Init init = (Init) applicationContext.get( Seam.getComponentName(Init.class) ); //can't use Init.instance() here 'cos of unit tests
String contextVariable = toName( method.getAnnotation(org.jboss.seam.annotations.Factory.class).value(), method );
init.addFactoryMethod(contextVariable, method, this);
+ if ( method.getAnnotation(org.jboss.seam.annotations.Factory.class).autoCreate() )
+ {
+ init.addAutocreateVariable(contextVariable);
+ }
}
if ( method.isAnnotationPresent(Observer.class) )
{
More information about the jboss-cvs-commits
mailing list