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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...