[jboss-dev-forums] [Design the new POJO MicroContainer] - Precedence level

bill.burke@jboss.com do-not-reply at jboss.com
Wed Jan 31 13:12:58 EST 2007


I'm looking at the Seam component model to see how it could be merged with MC.  Here's an interesting feature they got.

When you deploy a component, it can have both dependencies as well as a precedence level.  Basically the precedence level is a numerical value of where in the chain the component should be deployed.  Gavin uses this so that somebody could say:  "I want this component deployed after all Seam BUILT IN components".

Maybe we could translate this into logical groupings of beans:


  | <bean name="Foo" group="BUILT IN" .../>
  | <bean name="Bar" group="BUILT IN" .../>
  | 
  | 
  | <bean name="MyStuff">
  |    <depends-group>BUILT IN</depends-group>
  | </bean>
  | 

"MyStuff" would have a logical dependency to Foo and Bar through the "BUILT IN" tag.



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

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



More information about the jboss-dev-forums mailing list