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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...