[jboss-jira] [JBoss JIRA] Assigned: (JBMICROCONT-220) Support for nested properties
Ales Justin (JIRA)
jira-events at lists.jboss.org
Fri Nov 16 17:22:18 EST 2007
[ http://jira.jboss.com/jira/browse/JBMICROCONT-220?page=all ]
Ales Justin reassigned JBMICROCONT-220:
---------------------------------------
Assignee: Ales Justin
> Support for nested properties
> -----------------------------
>
> Key: JBMICROCONT-220
> URL: http://jira.jboss.com/jira/browse/JBMICROCONT-220
> Project: JBoss MicroContainer
> Issue Type: Feature Request
> Environment: N/A
> Reporter: Trustin Lee
> Assigned To: Ales Justin
> Priority: Minor
>
> Support for nested properties make beans XML more concise and easy to understand.
> Before:
> <bean name="beanX" ...>
> ...
> </bean>
> <bean name="propA" ...>
> <constructor><factory bean="beanX" method="getPropA"/></constructor>
> <property name="propB">...</property>
> </bean>
> <bean name="beanY" ...>
> <property name="propC"><inject bean="propA" property="propB"/></property>
> </bean>
> After:
> <bean name="beanX" ...>
> <property name="propA.propB">...</property>
> </bean>
> <bean name="beanY" ...>
> <!-- Ales's suggestion: is this supported now? -->
> <property name="propC"><inject bean="beanX" property="propA.propB"/></property>
> <!-- Spring style: not sure if this is better or not, but it's somewhat finger friendly :) -->
> <property name="propC ref="beanX.propA.propB"/>
> </bean>
--
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