org.jboss.deployers.spi.deployer.helpers
Class AbstractComponentDeployer<D,C>

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
          extended by org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput<D>
              extended by org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer<D,C>
Type Parameters:
D - the deployment type
C - the component type
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
AliasDeploymentDeployer, KernelDeploymentDeployer

public abstract class AbstractComponentDeployer<D,C>
extends AbstractRealDeployerWithInput<D>

AbstractComponentDeployer.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Ales Justin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
Ordered.OrderedComparator
 
Field Summary
protected  DeploymentVisitor<C> compVisitor
          The component visitor
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
AbstractComponentDeployer()
          Create a new AbstractComponentDeployer.
 
Method Summary
protected  void deployComponents(DeploymentUnit unit)
           
 Class<? extends C> getOutput()
          Get the otput for this deployer
 void internalDeploy(DeploymentUnit unit)
          Deploy a deployment
 void internalUndeploy(DeploymentUnit unit)
          Undeploy an deployment
protected  void setComponentVisitor(DeploymentVisitor<C> visitor)
          Set the component visitor
protected  void undeployComponents(DeploymentUnit unit)
           
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput
deploy, getInput, setDeploymentVisitor, undeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
addControllerContextName, deploy, isControllerContextNameCandidate, isUseUnitName, removeControllerContextName, setUseUnitName, undeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInputs, 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
 

Field Detail

compVisitor

protected DeploymentVisitor<C> compVisitor
The component visitor

Constructor Detail

AbstractComponentDeployer

public AbstractComponentDeployer()
Create a new AbstractComponentDeployer.

Method Detail

getOutput

public Class<? extends C> getOutput()
Description copied from interface: Deployer
Get the otput for this deployer

Specified by:
getOutput in interface Deployer
Overrides:
getOutput in class AbstractDeployer
Returns:
the output type

setComponentVisitor

protected void setComponentVisitor(DeploymentVisitor<C> visitor)
Set the component visitor

Parameters:
visitor - the visitor
Throws:
IllegalArgumentException - if the visitor is null

internalDeploy

public void internalDeploy(DeploymentUnit unit)
                    throws DeploymentException
Description copied from class: AbstractRealDeployer
Deploy a deployment

Overrides:
internalDeploy in class AbstractRealDeployerWithInput<D>
Parameters:
unit - the unit
Throws:
DeploymentException - for any error

internalUndeploy

public void internalUndeploy(DeploymentUnit unit)
Description copied from class: AbstractRealDeployer
Undeploy an deployment

Overrides:
internalUndeploy in class AbstractRealDeployerWithInput<D>
Parameters:
unit - the unit

deployComponents

protected void deployComponents(DeploymentUnit unit)
                         throws DeploymentException
Throws:
DeploymentException

undeployComponents

protected void undeployComponents(DeploymentUnit unit)


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