[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-224

adrian@jboss.org do-not-reply at jboss.com
Fri Jan 11 09:42:24 EST 2008


I'd just change all the uses of the classloader.loadClass() to be Class.forName()

Actually resolve=false is the equalivent of ClassLoader.loadClass()

e.g.

  |    private TypeInfo resolveComplexTypeInfo(ClassLoader cl, String name)
  |          throws ClassNotFoundException
  |    {
  |       if (cl == null)
  |          cl = Thread.currentThread().getContextClassLoader();
  | 
  | -      Class clazz = cl.loadClass(name);
  | +    Class<?> clazz = Class.forName(name, false, cl);
  |       return getTypeInfo(clazz);
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list