[jboss-cvs] JBossAS SVN: r58289 - projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Nov 12 23:20:56 EST 2006
Author: scott.stark at jboss.org
Date: 2006-11-12 23:20:54 -0500 (Sun, 12 Nov 2006)
New Revision: 58289
Modified:
projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AbstractClassLoaderDeployer.java
Log:
Look for an attachment of type ClassLoaderFactory, and if its not found, use this as the factory.
Modified: projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AbstractClassLoaderDeployer.java
===================================================================
--- projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AbstractClassLoaderDeployer.java 2006-11-13 01:24:44 UTC (rev 58288)
+++ projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AbstractClassLoaderDeployer.java 2006-11-13 04:20:54 UTC (rev 58289)
@@ -44,9 +44,16 @@
super.setRelativeOrder(CLASSLOADER_DEPLOYER);
}
+ /**
+ * Look for an attachment of type ClassLoaderFactory, and if its not
+ * found, use this as the factory.
+ */
public void deploy(DeploymentUnit unit) throws DeploymentException
{
- unit.createClassLoader(this);
+ ClassLoaderFactory factory = unit.getAttachment(ClassLoaderFactory.class);
+ if( factory == null )
+ factory = this;
+ unit.createClassLoader(factory);
}
public void undeploy(DeploymentUnit unit)
More information about the jboss-cvs-commits
mailing list