[Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
by kabir.khan@jboss.com
"adrian(a)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
17 years, 10 months
[Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
by adrian@jboss.org
"kabir.khan(a)jboss.com" wrote :
| My AOPDeployment class
|
| | @XmlElement(name="bean", namespace="urn:jboss:bean-deployer:2.0",
| |
|
You took me too literally. :-)
The example above was only intended to show
how the annotations work (you were using them wrong), it wasn't intended to be copied.
That's why I said
anonymous wrote :
| Illustrative example (trying to show how it works):
|
I've removed the elements that are in the MC namespace
which should be handled by the wildcard (@XmlAnyElement) not explicitly listed.
What you've defined is a {urn:jboss:aop-beans:1.0}bean and a
{urn:jboss:bean-deployer:2.0}bean in your namespace that are children
of deployment. But that doesn't override the child elements which will still be
in your namespace.
i.e. both with have {urn:jboss:aop-beans:1.0}constructor
You should let the MC schema define the {urn:jboss:bean-deployer:2.0}bean
and use it as a "wildcard".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132437#4132437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132437
17 years, 10 months