[jboss-user] [JBoss Seam] - @In and @Factory
gersonk
do-not-reply at jboss.com
Fri Feb 8 08:57:07 EST 2008
Code example:
| ...
| @Name("componentA")
| @Stateful
| public class ComponentA{
|
| @In(required=false)
| @Out(required=false, scope=PAGE)
| private Integer x;
|
| @Factory("x")
| public void initX(){
| x = 1;
| }
|
| public void someMethod(){
| ... // why is 'x' null here?
| }
|
| }
|
How I can tell Seam to invoke the Factory Method whenever someMethod() is called if 'x' is null?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127811#4127811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127811
More information about the jboss-user
mailing list