[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: ClassLoader usage in AnnotationCreator::createAnnotation

alesj do-not-reply at jboss.com
Mon Oct 6 09:06:37 EDT 2008


"alesj" wrote : 
  | My question is, why don't we rather take loader from annotation class if it's not null, then use TCCL?
  | 

  |       ClassLoader loader;
  |       if (cl != null)
  |       {
  |          loader = cl;         
  |       }
  |       else if (annotation != null)
  |       {
  |          loader = annotation.getClassLoader();
  |       }
  |       else
  |       {
  |          loader = Thread.currentThread().getContextClassLoader();
  |       }
  | 

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

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



More information about the jboss-dev-forums mailing list