[jboss-dev-forums] [Design the new POJO MicroContainer] - AnnotatedElementMetaDataLoader doesn't work for private meth
wolfc
do-not-reply at jboss.com
Fri Aug 8 04:58:13 EDT 2008
With a hack, part of https://jira.jboss.org/jira/browse/EJBTHREE-1448, I have made advisor.annotationRepository authoritative on annotations. I did this by setting advisor.metaData to a dummy. (Which leaves the relationship between and advisor.annotationRepository and advisor.metaData as a nagging question in my mind. I guess that annotationRepository should be deprecated?)
This disables the regular fallback of the advisor to scan for annotations and leaves it to MDR.
But now if I want to look at an annotation of a private method I get nothing, because AnnotatedElementMetaDataLoader.getComponentMetaDataRetrieval(signature)
returns null when AnnotatedElementMetaDataLoader.this.annotated = class
A and signature = MethodSignature of a private Method of class A.
Dare I say, I consider this a bug.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169516#4169516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169516
More information about the jboss-dev-forums
mailing list