[jboss-dev-forums] [Design of POJO Server] - Re: Integrating aop-mc-int bean metadata with AS5

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Aug 12 16:56:59 EDT 2008


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#4170175

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



More information about the jboss-dev-forums mailing list