[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MDR doesn't work on annotated privates
adrian@jboss.org
do-not-reply at jboss.com
Fri Aug 15 11:00:15 EDT 2008
"wolfc" wrote :
| I'm happy to use DeclaredMethodSignature though, so if that's the solution please leave that one in. :-)
|
The idea of DeclaredMethodSignature is to get something working.
I'd much rather use MethodSignature, it's just a case of finding a way to
do it without adding performance penalities to (or even worse breaking)
existing code.
Like I said in an earlier post, once we know how to do that, we can retrofit
DeclaredMethodSignature to be:
| @Deprecated // legacy hack
| public class DeclaredMethodSignature extends MethodSignature { ... }
|
anonymous wrote :
| I still think there should be some assertion that prevents me from abusing MethodSignature though.
|
| assert method == ReflectionUtils.findMethod(clazz, signature.getName(), signature.getParametersTypes(clazz)) : "You're abusing JBMDR-28";
| In AnnotatedMetaDataLoader? It doesn't impose performance downgrades, but it's not really friendly/usable.
Add it if you want, or raise a JIRA issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170782#4170782
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170782
More information about the jboss-dev-forums
mailing list