[jboss-dev-forums] [Design the new POJO MicroContainer] - Mapping legacy properties onto JavaBean properties

scott.stark@jboss.org do-not-reply at jboss.com
Mon Jul 24 21:52:32 EDT 2006


For a number of objects we have legacy java.util.Properties based configurations or system properties that map onto JavaBean properties of MC compatible configuration objects. 


  | <deployment xmlns="urn:jboss:bean-deployer:2.0">
  |    <bean name="SystemProperties" class="org.jboss.SystemPropertiesBean"/>
  |    
  |    <bean name="Config1" class="org.jboss.SomeConfig">
  |       <property name="prop1"><inject bean="SystemProperties" property="org.jboss.some.prop1"/></property>
  |    </bean>
  | </deployment>
  | 

More automated configuration mappings via the ProfileService and other server aspects could bring this mapping in at another level.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960563#3960563

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960563



More information about the jboss-dev-forums mailing list