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

adrian@jboss.org do-not-reply at jboss.com
Thu Feb 1 09:20:47 EST 2007


"alesj" wrote : "adrian at jboss.org" wrote : If we/you can get some (semi) clear picture where and how we want this plumbing to happen, I can go and code some initial ideas - so that we can see what fits us best. And I can test this with our OSGi project (as previously mentioned requirement).
  |   | 
  | 
  | We discussed it a while ago (I think some of the major discussions were on
  | the jboss-dev mailing list). I called it "policy" configuration at that time.
  | 
  | If search worked I could find it for you. ;-)
  | 
  | The basic idea is that you can deploy contextual metadata to scopes,
  | underneath it would be something like:
  | 
  | 
  |   | <bean name="JCAPolicy" ...>
  |   |    <annotation>scope definition</annotation>
  |   |    <property name="binding">
  |   |        <map>
  |   |             bindings into the metadata scope go here
  |   |    </property>
  |   | </bean>
  |   | 
  | 
  | But I wanted some easier xml than this, similar to the use case xml for AOP.
  | 
  | 
  |   | <policy>
  |   |    <scope/>
  |   |    <annotations/>
  |   |    <bindings/>
  |   | </policy>
  |   | 
  |   |   | 
  |   |   | This then populates the MetaDataRepository for that scope.
  |   |   | Something that is only done currently at the instance level for annotations
  |   |   | against the bean.

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

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



More information about the jboss-dev-forums mailing list