[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int

kabir.khan@jboss.com do-not-reply at jboss.com
Wed Feb 27 06:23:57 EST 2008


"adrian at jboss.org" wrote : Question: Do you really want an aop:bean? Is that just for ease of use?

No, I didn't understand properly and blindly followed your example :-) Now it makes a lot more sense wrt @XmlAnyElement. 

I now have 

  |    @XmlElements
  |    ({
  |       @XmlElement(name="aspect", type=AspectBeanMetaDataFactory.class),
  |       @XmlElement(name="interceptor", type=InterceptorBeanMetaDataFactory.class),
  |       @XmlElement(name="bind", type=BindBeanMetaDataFactory.class),
  |       @XmlElement(name="stack", type=StackBeanMetaDataFactory.class),
  |       @XmlElement(name="typedef", type=TypeDefBeanMetaDataFactory.class),
  |       @XmlElement(name="cflow-stack", type=CFlowStackBeanMetaDataFactory.class)
  |    })
  |    @XmlAnyElement
  |    public void setBeanFactories(List<BeanMetaDataFactory> beanFactories)
  |    {
  |       super.setBeanFactories(beanFactories);
  |    }
  | 
and that works great. Thanks for your help

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

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



More information about the jboss-dev-forums mailing list