[jboss-jira] [JBoss JIRA] Resolved: (JBMICROCONT-220) Support for nested properties
Ales Justin (JIRA)
jira-events at lists.jboss.org
Mon Dec 10 18:40:51 EST 2007
[ http://jira.jboss.com/jira/browse/JBMICROCONT-220?page=all ]
Ales Justin resolved JBMICROCONT-220.
-------------------------------------
Resolution: Done
Changed BeanInfo get/set to use BeanInfoUtil, which knows how to handle nested properties.
Also changed was Kernel's ConfigureAction, which now uses direct BeanInfo.set to configure bean.
The old version of ConfigureAction is still available under OldConfigureAction class. :-)
> Support for nested properties
> -----------------------------
>
> Key: JBMICROCONT-220
> URL: http://jira.jboss.com/jira/browse/JBMICROCONT-220
> Project: JBoss MicroContainer
> Issue Type: Feature Request
> Components: Kernel
> Affects Versions: JBossMC-2.0.0.Beta6
> Environment: N/A
> Reporter: Trustin Lee
> Assigned To: Ales Justin
> Priority: Minor
> Fix For: JBossMC-2.0.0.CR1
>
>
> 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