"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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user