[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-330 - Preconfigured MDR and scopes

alesj do-not-reply at jboss.com
Wed Aug 13 06:11:44 EDT 2008


"adrian at jboss.org" wrote : 
  | When you create the ControllerContext from the Component, 
  | you copy the GUID.
  | 
OK, makes sense.

But still makes it hard to create some predetermined INSTANCE scope metadata, 
since it's again, how are gonna know which GUID is the one you actually want from a set of GUIDs from components.
e.g. 

  | <deployment>
  |    <bean name="simple" class="org.jboss.acme.Simple"/>
  | 
  |    <bean name="simple" class="org.jboss.acme.Simple">
  |       <annotation>@org.jboss.acme.SomeScopeAnnotation("myscope")</annotation>
  |    </bean>
  | </deployment>
  | 
And now I want to add some predetermined INSTANCE metadata to 2nd bean.
How am I gonna know which GUID is assigned to its component?
Unless I do some detailed lookup, e.g. Component --> BeanMetaData --> annotations --> are they scope annotations ---> ...

And you cannot do any MDR modification before Real deployment phase,
since the components are not there yet - no GUID.


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

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



More information about the jboss-dev-forums mailing list