"kabir.khan(a)jboss.com" wrote :
| I spoke to Ales about this, it is (was) solving the problem mentioned here:
|
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154037#...
| Basically in a scoped deployment I deploy the aop beans with a new unique name,
| and use an annotation to create the alias, and an annotation to deploy the bean into
a scoped controller.
|
So the issue is that you want to have aspects with the same name
but in different "scopes".
So you are using the ScopedController.
There's no need to change the Bean's name if you are using a scoped controller.
But the ScopedController is not integrated with the MDR.
There is no way to have two MDR scopes with
INSTANCE/BeanName
which is the default instance scope identifier created by the DefaultScopeBuilder
context here is a component deployment context so the name is the bean name.
| public ScopeKey getMutableComponentScope(DeploymentContext context)
| {
| if (context == null)
| throw new IllegalArgumentException("Null context");
|
| return new ScopeKey(CommonLevels.INSTANCE, context.getName());
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169029#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...