[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Field injection

alesj do-not-reply at jboss.com
Tue Mar 11 11:41:54 EDT 2008


"kabir.khan at jboss.com" wrote : 
  | 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.
We can detect if the target is plain pojo (probably trivial via some AOP specific interface check) or if it's aspectized but woven (this probably also already exists), else throwing an error saying user cannot do field injection.



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

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



More information about the jboss-dev-forums mailing list