[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Scoped beans deployment

adrian@jboss.org do-not-reply at jboss.com
Thu Feb 1 10:54:23 EST 2007


"alesj" wrote : 
  | 
  | <policy>
  |   |    <scope/>
  |   |    <annotations/>
  |   |    <bindings/>
  |   | </policy>
  | 
  | How is this integrated with current MC xml, I don't see it :-(?

Through the wildcard handling:

  | <policy xmlns="urn:jboss-policy:1.0"/>
  | 

The policy xml unmarshalling would create a BeanMetaDataFactory.

This is something we could defintely make it easier to do.
I'd like each project to define use case xml.

e.g. instead of 

  | <bean name="MyQueue" class="SomeQueueClass">
  |    <ugly-irrelevant-implementation-detail-config-here/>
  |    
  |    <!-- Useful properties in ugly property config -->
  |    <property name="name">queue/MyQueue</property>
  | </bean>
  | 

The user would just write


  | <queue xmlns="urn:jboss-messaging:1.0" 
  |              name="queue/MyQueue"/>
  | 
which produces the above BeanMetaData internally (probably using
your new builder :-).

You can forget about this and just use the bean xml equivalent in the initial work.

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

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



More information about the jboss-dev-forums mailing list