"adrian(a)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>(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...