org.jboss.deployers.plugins.classloading
Class AbstractLevelClassLoaderSystemDeployer

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer
          extended by org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer
All Implemented Interfaces:
Deployer, Ordered, ClassLoaderFactory

public class AbstractLevelClassLoaderSystemDeployer
extends AbstractClassLoaderDeployer

AbstractLevelClassLoaderSystemDeployer.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
AbstractLevelClassLoaderSystemDeployer()
           
 
Method Summary
protected  void cleanup(DeploymentUnit unit, org.jboss.classloading.spi.dependency.Module module)
          Hook to perform cleanup on destruction of classloaader
 void create()
          Validate the config
 ClassLoader createClassLoader(DeploymentUnit unit)
          Create a classloader for this deployment
 org.jboss.classloading.spi.dependency.ClassLoading getClassLoading()
          Get the classLoading.
 org.jboss.classloader.spi.ClassLoaderSystem getSystem()
          Get the system.
 void removeClassLoader(DeploymentUnit unit)
          Remove a classloader for this deployment
 void setClassLoading(org.jboss.classloading.spi.dependency.ClassLoading classLoading)
          Set the classLoading.
 void setSystem(org.jboss.classloader.spi.ClassLoaderSystem system)
          Set the system.
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer
deploy, undeploy
 
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
 

Constructor Detail

AbstractLevelClassLoaderSystemDeployer

public AbstractLevelClassLoaderSystemDeployer()
Method Detail

getClassLoading

public org.jboss.classloading.spi.dependency.ClassLoading getClassLoading()
Get the classLoading.

Returns:
the classLoading.

setClassLoading

public void setClassLoading(org.jboss.classloading.spi.dependency.ClassLoading classLoading)
Set the classLoading.

Parameters:
classLoading - the classLoading.

getSystem

public org.jboss.classloader.spi.ClassLoaderSystem getSystem()
Get the system.

Returns:
the system.

setSystem

public void setSystem(org.jboss.classloader.spi.ClassLoaderSystem system)
Set the system.

Parameters:
system - the system.

create

public void create()
Validate the config


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

cleanup

protected void cleanup(DeploymentUnit unit,
                       org.jboss.classloading.spi.dependency.Module module)
                throws Exception
Hook to perform cleanup on destruction of classloaader

Parameters:
unit - the deployment unit
module - the module
Throws:
Exception - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.