While I get the correct AspectMaager, scoped aop (with my WIP) is broken in AS, following
the latest MC update. I think it is because the aliases are not working as they used to so
e.g. my aspect bindings are not installed since the dependencies are not satisfied since
it cannot find the dependencies. I have had a look at DescribeAction.applyAnnotations(),
and from what I can see the resulting AliasesAnnotationPlugin.internalApplyAnnotation()
returns immediately due to no @Aliases found in MDR, so the aliases are never set in the
bean metadata. Of course, I could be looking in the wrong place :-)
As we discussed a while ago, I am adding the @Aliases to the bean metadata:
| private void massageScopedBean(BeanMetaData bean)
| {
| if (scoped)
| {
| String name = bean.getName();
| String newName = "ScopedAlias_" + sequence + "_" + name;
|
| BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(bean);
|
| //Set the alias to the original name
| builder.addAnnotation(new AliasesImpl(name));
|
Should this instead be added to MDR? Or are aliases handled some other way?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170175#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...