org.jboss.deployers.spi.deployer.helpers
Class AbstractTopLevelClassLoaderDeployer
java.lang.Object
org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer
- All Implemented Interfaces:
- Deployer, Ordered, ClassLoaderFactory
public abstract class AbstractTopLevelClassLoaderDeployer
- extends AbstractClassLoaderDeployer
AbstractTopLevelClassLoaderDeployer.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer |
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutput, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTopLevelClassLoaderDeployer
public AbstractTopLevelClassLoaderDeployer()
createClassLoader
public ClassLoader createClassLoader(DeploymentUnit unit)
throws Exception
- Description copied from interface:
ClassLoaderFactory
- Create a classloader for this deployment
- Parameters:
unit
- the deployment unit
- Returns:
- classloader or null if not created
- Throws:
Exception
- for any error
removeClassLoader
public void removeClassLoader(DeploymentUnit unit)
throws Exception
- Description copied from interface:
ClassLoaderFactory
- Remove a classloader for this deployment
- Specified by:
removeClassLoader
in interface ClassLoaderFactory
- Overrides:
removeClassLoader
in class AbstractClassLoaderDeployer
- Parameters:
unit
- the deployment unit
- Throws:
Exception
- for any error
createTopLevelClassLoader
protected abstract ClassLoader createTopLevelClassLoader(DeploymentUnit unit)
throws Exception
- Create a top level classloader
- Parameters:
unit
- the deployment unit
- Returns:
- the classloader
- Throws:
Exception
- for any error
removeTopLevelClassLoader
protected void removeTopLevelClassLoader(DeploymentUnit unit)
throws Exception
- Remove a top level classloader
- Parameters:
unit
- the deployment unit
- Throws:
Exception
- for any error
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.