[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-99 Classloader for AbstractAnnotationMetaDat

adrian@jboss.org do-not-reply at jboss.com
Fri Jul 13 12:00:05 EDT 2007


No. The api needs changing to pass in the classloader.

You should be using:

org.jboss.kernel.plugins.config.Configuration.getClassLoader(BeanMetaData)

That method will return the TCL if there is nothing configured for the bean/deployment.

It is a requirement that this works in PRE_INSTALL

see AbstractClassLoaderMetaData

  | 
  |    public void initialVisit(MetaDataVisitor visitor)
  |    {
  |       visitor.setContextState(ControllerState.PRE_INSTALL);
  |       visitor.initialVisit(this);
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list