[jboss-dev-forums] [Design the new POJO MicroContainer] - TypeInfo.isAssignableFrom

alesj do-not-reply at jboss.com
Thu Nov 22 12:08:53 EST 2007


I just had a discussion with Flavia (JBossAOP), following up the discussion started by Heiko in TheCore regarding generic collection component type, whether something is assignable or not ...

She informed me that she went an extra mile, and wrote the isAssignableFrom completely based on the Type (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Type.html) interface.

Since this is a generic work, which definitely belongs to Container module, and not just to AOP, I guess we can change our TypeInfo.isAssignableFrom to her implementation:
 - https://svn.jboss.org/repos/jbossas/projects/aop/trunk/aop/src/main/org/jboss/aop/advice/annotation/assignability/

As the stuff is far from trivial, a bunch of tests were also written:
 - https://svn.jboss.org/repos/jbossas/projects/aop/trunk/aop/src/test/org/jboss/test/aop/unit/assignability/

If we also pitch in some sort of caching, this should nicely fit in into slowly removing the deprecated getType method.

Thoughts?

btw: great work Flavia!!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107155#4107155

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107155



More information about the jboss-dev-forums mailing list