[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Improving the process of applying AnnotationPlugins on M
alesj
do-not-reply at jboss.com
Fri Apr 3 09:54:29 EDT 2009
"jaikiran" wrote :
| Any thoughts about this?
|
Although this optimizes things, it's wrong.
There is a reason why we go over MDR. ;-)
The reason is that annotations can be added to class, ctor, method or field
via XML or programmatically (with MDR api).
Perhaps we can add some annotation you can put on the class
which list possible annotation classes, hence only checking those annotation plugins.
e.g.
| @MCAnnotations(Inject.class, EJB.class, Resource.class, PersistenceContex.class) // this will be added via MDR / metadata
| public class MyEJB implements IMyEJB
|
And we would have a check in CommonAnnotationAdapter for this annotation,
only applying those annotation plugins that match found annotation classes.
If no such annotation exists, run them all as we do now.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223311#4223311
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223311
More information about the jboss-dev-forums
mailing list