[jboss-user] [Microcontainer] - Re: ClassLoaderMetaData not propagating (yet?) to classloade
alesj
do-not-reply at jboss.com
Wed Feb 13 19:25:18 EST 2008
"gcompienne" wrote :
| And when my classloader is called, just before VFSTopLevelClassLoaderSystemDeployer would be called, it shows me that no ClassLoaderFactory attachment is available...
|
| public abstract class AbstractClassLoaderDeployer extends AbstractDeployer implements ClassLoaderFactory
| {
| /**
| * Create a new AbstractClassLoaderDeployer.
| */
| public AbstractClassLoaderDeployer()
| {
| setStage(DeploymentStages.CLASSLOADER);
| setInput(ClassLoaderFactory.class);
| setAllInputs(true);
| }
|
| public void deploy(DeploymentUnit unit) throws DeploymentException
| {
| ClassLoaderFactory factory = unit.getAttachment(ClassLoaderFactory.class);
| if (factory == null)
| factory = this;
| unit.createClassLoader(factory);
| }
|
| public void undeploy(DeploymentUnit unit)
| {
| ClassLoaderFactory factory = unit.getAttachment(ClassLoaderFactory.class);
| if (factory == null)
| factory = this;
| unit.removeClassLoader(factory);
| }
|
| public void removeClassLoader(DeploymentContext context) throws Exception
| {
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129275#4129275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129275
More information about the jboss-user
mailing list