[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Field injection
kabir.khan@jboss.com
do-not-reply at jboss.com
Tue Mar 11 11:19:03 EDT 2008
"alesj" wrote :
| Or what's the difference between invoking method vs. field via reflection on the AOP proxy?
The proxy is a subclass of the class AND contains a reference to the wrapped object.
Calling a method on the proxy delegates to a method in the wrapped object.
Setting a field on the proxy does not get reflected in the wrapped object, and setting a field in the wrapped object does not get reflected in the proxy since the proxy and the wrapped object are different instances.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135659#4135659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135659
More information about the jboss-dev-forums
mailing list