[jboss-user] [JBoss Seam] - Re: @Unwrap question
wschwendt
do-not-reply at jboss.com
Sat Jul 7 10:56:46 EDT 2007
"enzhao" wrote : Hi folks,
|
| 1. What's the difference between @Factory and @Unwrap in the following two code fragments? (from reference section 3.8)
|
the Factory method gets only called if the referenced context variable, the factory method is defined for, is not yet bound to a value. In your case the context variable is "customerList". Once this context variable is set to a value, the factory won't be called anymore, when "customerList" gets referenced additional times.
In contrast, the method annotated with @unwrap gets called EVERY time the manager component with the name "customerList" is referenced.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061600#4061600
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061600
More information about the jboss-user
mailing list