[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: ManagedObject stuff for AOP

adrian@jboss.org do-not-reply at jboss.com
Tue Nov 13 10:19:16 EST 2007


"kabir.khan at jboss.com" wrote : AOPBeansSchemaInitializer to use the "new" underlying beans, and create a new SchemaBindingInitializer to parse the "new" use-case.xml.
  | 

You probably want to look at the JBossXB annotation based parsing?

But that would require the MC being updated to also do that.
The MC based annotation parsing is prototyped in the JBossXB testsuite
so speak to Ales about getting it ported.

The annotation approach has one big advantage which is that
it is a lot easier to include other people's metadata classes in your models.

The metadata (e.g. MC's properties) inherits the namespace of the top level
element/class defining the schema.

e.g. Something like


  | @JBossXmlSchema("urn:jboss-aop:2.0")
  | public class Aspect
  | {
  |    @XmlElement(name="property")
  |    public void setProperties(Collection<org.jboss.metadata.spi.PropertyMetaData> properties);
  | }
  | 

Will define an {urn:jboss-aop:2.0}:property so no need to play about with 
(hack) namespaces like in the old approach. :-)

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

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



More information about the jboss-dev-forums mailing list