[jboss-dev-forums] [Design of POJO Server] - Re: Instance annotations from Object Models
adrian@jboss.org
do-not-reply at jboss.com
Mon Nov 5 08:59:43 EST 2007
"scott.stark at jboss.org" wrote : The way I see it, the Ejb3DescriptorHandler should not be using the AnnotationRepository, nor its MetaDataRepository replacement. Rather, the annotations should be another source of data for the org.jboss.metadata.* pojos.
|
| There are two ways this can be done. One would be to create another merged view similar to how the standard metadata is merged into the jboss metadata. Defining a merge(AnnotatedElement) api to map the annotations onto the jboss metadata view would be needed.
|
| The second would be to create a separate wrapped view similar to how the standardjboss.xml is handled. The wrapped view would be MetaDataRepository aware and look to it for the annotation based metdata. This is the approach I think is cleanest.
|
That doesn't solve the problem.
The issue is making the xml look like annotations such that EJB3's AOP confgiguration
(which works off annotations to enable adivces) can see the configuraiton from the xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101776#4101776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101776
More information about the jboss-dev-forums
mailing list