[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MutableClassInfo?
stale.pedersen@jboss.org
do-not-reply at jboss.com
Wed Feb 18 06:14:50 EST 2009
"alesj" wrote :
| What does javassist return as CtBehavior::getSignature?
| How does it look like?
| I guess you get the same string even for diff instances of the same method/field/constructor?
|
yes, using the method signature will create duplicate keys if methods got the same parameter signature. but using CtBehaviour.getLongName() (which add the class and methodname to the signature) we will always be sure that we have a unique key. eg for a method like: Pojo.foo(String), CtBehaviour.getLongName() would return Pojo.foo(java.lang.String).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211023#4211023
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211023
More information about the jboss-dev-forums
mailing list