[jboss-dev-forums] [Design the new POJO MicroContainer] - Field injection
alesj
do-not-reply at jboss.com
Tue Mar 11 10:34:28 EDT 2008
Scott is working on the EJBs where field injection is heavily used, and he needs this asap. :-)
>From the distance it looks very similar to what we have with propertys.
e.g.
| <bean name="mybean" class="org.jboss.acme.MyBean">
| <field name="somefield"><inject bean="somebean"/></field>
| <field name="mynumber" class="java.lang.Long">123456789</field>
| </bean>
|
Is there a reason why we never mentioned/implemented field injection?
AOP is one for sure. But if the pojo is not aspectized, then it should be OK, otherwise just a reasonable error/info should be thrown.
Or what's the difference between invoking method vs. field via reflection on the AOP proxy?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135632#4135632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135632
More information about the jboss-dev-forums
mailing list