"kabir.khan(a)jboss.com" wrote : Reading this thread
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134204#... I came
back to this. Regarding 3) What would this xsd:refine map to in jaxb annotations? My
understanding was that using jaxb it generates a schema from the annotations?
|
It doesn't map to anything .
The xsd:redefine, just specifies what is the default behaviour the JBossXBBuilder
which is to include types reachable from your hierarchy in your namespace
(absent any explicit namepace= in the annotations).
anonymous wrote :
| Apart from that, if I have understood you correctly, mc-commons.xsd would contain the
current bean_deployer_2_0.xsd.
|
Yes, except the root elements (deployment, bean, etc.) and without a namspace
anonymous wrote :
| I would then be able to do
|
| | <aop>
| | <bean name="Bean" class="Foo"/>
| | <aspect class="MyAspect" scope="PER_VM">
| | <property name="thing">XXX</property>
| | </aspect>
| | </aop>
| |
|
Correct
anonymous wrote :
| If I wanted to do this the other way around, I would need to use xmlns on the aop
specific elements
|
| | <deployment>
| | <bean name="Bean" class="Foo"/>
| | <aspect xmlns:aop="urn:jboss:aop-beans:1.0"
class="MyAspect" scope="PER_VM">
| | <property name="thing">XXX</property>
| | </aspect>
| | </deployment>
| |
|
| I'm not sure what the xmlns should be for property, but apart from that is my
understanding correct?
The idea is you don't need one.
What you defined is probably not correct unless your schema allows
urn:jboss:bean-deployer:2.0:property
as an element of aspect.
The correct usage would be either
explicit
| <deployment>
| <bean name="Bean" class="Foo"/>
| <aspect xmlns:aop="urn:jboss:aop-beans:1.0" class="MyAspect"
scope="PER_VM">
| <aop:property name="thing">XXX</aop:property>
| </aspect>
| </deployment>
|
or change the default namespace
| <deployment>
| <bean name="Bean" class="Foo"/>
| <!-- HERE - simple xmlns -->
| <aspect xmlns="urn:jboss:aop-beans:1.0" class="MyAspect"
scope="PER_VM">
| <property name="thing">XXX</property>
| </aspect>
| </deployment>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134250#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...