[jboss-dev-forums] [Design the new POJO MicroContainer] - JBMICROCONT-224
alesj
do-not-reply at jboss.com
Fri Jan 11 09:25:22 EST 2008
OK, this look pretty straight forward, except that I don't like where the code resides. :-)
Doing this in ArrayInfoImpl.getType is where this is needed:
| if (annotatedElement == null)
| {
| try
| {
| annotatedElement = Class.forName(name, true, componentType.getType().getClassLoader());
| }
| catch (Throwable t)
| {
| throw new UndeclaredThrowableException(t);
| }
| }
| return (Class<? extends Object>)annotatedElement;
|
But using Class.forName outside TypeInfoFactory (TIF) doesn't seem right.
Should I introduce new method on TIF?
If so, how to name it, params, ...
Perhaps this?
| TypeInfo getTypeInfo(String name, boolean initialize, ClassLoader cl) throws ClassNotFoundException;
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119077#4119077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119077
More information about the jboss-dev-forums
mailing list