[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Providing bean name aware feature
alesj
do-not-reply at jboss.com
Fri Jul 13 05:06:03 EDT 2007
This is done.
Comment from JIRA task:
Support for injecting bean name is added both to plain bean and to beanfactory as well:
| <bean name="MyPlainBeanName" class="org.jboss.test.kernel.deployment.support.NameAwareBean" name-method="applyName" />
| <beanfactory name="MyNameAsFactory" class="org.jboss.test.kernel.deployment.support.NameAwareBean" name-method="applyName" />
|
You have to specify name of the method that will handle bean name injection - in this case it is applyName method on NameAwareBean class.
It's a method support, not a property support, so setters should be fully written.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063855#4063855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063855
More information about the jboss-dev-forums
mailing list