org.jboss.deployers.spi.deployer.helpers
Class AbstractRealDeployerWithInput<T>

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<T>
Type Parameters:
T - the type of the input
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
AbstractComponentDeployer, BeanMetaDataFactoryDeployer, DeploymentAliasesDeployer, DeploymentDependencyDeployer

public abstract class AbstractRealDeployerWithInput<T>
extends AbstractRealDeployer

AbstractRealDeployerWithInput.

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
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
AbstractRealDeployerWithInput()
          Create a new AbstractRealDeployerWithInput.
AbstractRealDeployerWithInput(Class<T> input)
          Create a new AbstractRealDeployerWithInput.
 
Method Summary
protected
<U> void
deploy(DeploymentUnit unit, DeploymentVisitor<U> visitor)
          Deploy over visitor.
 Class<? extends T> getInput()
          Get the input for this deployer
 void internalDeploy(DeploymentUnit unit)
          Deploy a deployment
 void internalUndeploy(DeploymentUnit unit)
          Undeploy an deployment
protected  void setDeploymentVisitor(DeploymentVisitor<T> visitor)
          Set the deployment visitor
protected
<U> void
undeploy(DeploymentUnit unit, DeploymentVisitor<U> visitor)
          Undeploy over visitor.
 
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, 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

AbstractRealDeployerWithInput

public AbstractRealDeployerWithInput()
Create a new AbstractRealDeployerWithInput.


AbstractRealDeployerWithInput

public AbstractRealDeployerWithInput(Class<T> input)
Create a new AbstractRealDeployerWithInput.

Parameters:
input - the input
Method Detail

getInput

public Class<? extends T> getInput()
Description copied from interface: Deployer
Get the input for this deployer

Specified by:
getInput in interface Deployer
Overrides:
getInput in class AbstractDeployer
Returns:
the input type

setDeploymentVisitor

protected void setDeploymentVisitor(DeploymentVisitor<T> visitor)
Set the deployment 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

Specified by:
internalDeploy in class AbstractRealDeployer
Parameters:
unit - the unit
Throws:
DeploymentException - for any error

deploy

protected <U> void deploy(DeploymentUnit unit,
                          DeploymentVisitor<U> visitor)
               throws DeploymentException
Deploy over visitor. Unwind already deployed deployments on failure.

Type Parameters:
U - the deployment type
Parameters:
unit - the deployment unit
visitor - the visitor
Throws:
DeploymentException - for any error

undeploy

protected <U> void undeploy(DeploymentUnit unit,
                            DeploymentVisitor<U> visitor)
Undeploy over visitor.

Type Parameters:
U - the deployment type
Parameters:
unit - the deployment unit
visitor - the visitor

internalUndeploy

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

Overrides:
internalUndeploy in class AbstractRealDeployer
Parameters:
unit - the unit


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