org.jboss.deployers.spi.deployer.helpers
Class AbstractRealDeployer

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
AbstractOptionalRealDeployer, AbstractRealDeployerWithInput, AbstractSimpleRealDeployer, AbstractVFSRealDeployer

public abstract class AbstractRealDeployer
extends AbstractDeployer

AbstractRealDeployer.

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
AbstractRealDeployer()
          Create a new AbstractRealDeployer.
 
Method Summary
protected  void addControllerContextName(DeploymentUnit unit)
          Add controller context name.
 void deploy(DeploymentUnit unit)
          Deploy a deployment
protected abstract  void internalDeploy(DeploymentUnit unit)
          Deploy a deployment
protected  void internalUndeploy(DeploymentUnit unit)
          Undeploy an deployment
protected  boolean isControllerContextNameCandidate(DeploymentUnit unit)
          Should we set controller context name on unit?
 boolean isUseUnitName()
          Should we use unit name for controller context name.
protected  void removeControllerContextName(DeploymentUnit unit)
          Remove controller context name.
 void setUseUnitName(boolean useUnitName)
          Set use unit name for controller context name.
 void undeploy(DeploymentUnit unit)
          Undeploy an deployment
 
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

AbstractRealDeployer

public AbstractRealDeployer()
Create a new AbstractRealDeployer.

Method Detail

deploy

public final void deploy(DeploymentUnit unit)
                  throws DeploymentException
Description copied from interface: Deployer
Deploy a deployment

Parameters:
unit - the unit
Throws:
DeploymentException - for any error

isControllerContextNameCandidate

protected boolean isControllerContextNameCandidate(DeploymentUnit unit)
Should we set controller context name on unit?

Parameters:
unit - the dpeloyment unit
Returns:
true if we should use unit's name as controller context name

internalDeploy

protected abstract void internalDeploy(DeploymentUnit unit)
                                throws DeploymentException
Deploy a deployment

Parameters:
unit - the unit
Throws:
DeploymentException - for any error

addControllerContextName

protected void addControllerContextName(DeploymentUnit unit)
Add controller context name.

Parameters:
unit - the deployment unit

removeControllerContextName

protected void removeControllerContextName(DeploymentUnit unit)
Remove controller context name.

Parameters:
unit - the deployment unit

undeploy

public final void undeploy(DeploymentUnit unit)
Description copied from interface: Deployer
Undeploy an deployment

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
unit - the unit

internalUndeploy

protected void internalUndeploy(DeploymentUnit unit)
Undeploy an deployment

Parameters:
unit - the unit

isUseUnitName

public boolean isUseUnitName()
Should we use unit name for controller context name.

Returns:
true if usage is allowed

setUseUnitName

public void setUseUnitName(boolean useUnitName)
Set use unit name for controller context name.

Parameters:
useUnitName - flag to allow unit name usage


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