[jboss-user] [JBoss Seam] - Re: @Unwrap question

rlhr do-not-reply at jboss.com
Sat Jul 7 10:22:48 EDT 2007

As far as I know, one difference is the way you are going to access your object.

If you use @Factory, you'll have to access it through the bean: #{myBeanName.myMethodName} (any first reference to myBeanName will trigger a call to the factory method)

Using unwrap, you directly use the bean name:  #{myBeanName} (the bean and any other methods remain hidden, only the result of the unwrap method is exposed).

There might be other differences, but I'm not aware of them...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061596#4061596

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061596

More information about the jboss-user mailing list