[jboss-jira] [JBoss JIRA] Closed: (JBMICROCONT-192) Inject bean name into target bean

Ales Justin (JIRA) jira-events at lists.jboss.org
Fri Jul 13 05:04:04 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBMICROCONT-192?page=all ]

Ales Justin closed JBMICROCONT-192.
-----------------------------------

    Resolution: Done

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.

> Inject bean name into target bean
> ---------------------------------
>
>                 Key: JBMICROCONT-192
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-192
>             Project: JBoss MicroContainer
>          Issue Type: Feature Request
>          Components: Kernel
>    Affects Versions: JBossMC_2_0_0_CR1
>            Reporter: Ales Justin
>         Assigned To: Ales Justin
>            Priority: Minor
>
> Provide an implementation of bean name aware feature.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list