org.jboss.deployers.spi.deployer.helpers
Class AbstractOptionalRealDeployer<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.AbstractOptionalRealDeployer<T>
Type Parameters:
T - the deployment type
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
AbstractClassLoaderDescribeDeployer, AbstractOptionalVFSRealDeployer, ClassLoadingDefaultDeployer

public abstract class AbstractOptionalRealDeployer<T>
extends AbstractRealDeployer

An abstract more complicated VFS real deployer where the input is optional instead of mandatory.

Author:
Carlo de Wolf, 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
AbstractOptionalRealDeployer(Class<T> optionalInput)
          Create a new AbstractOptionalRealDeployer.
 
Method Summary
abstract  void deploy(DeploymentUnit unit, T deployment)
          Deploy
 void internalDeploy(DeploymentUnit unit)
          Deploy a deployment
 void internalUndeploy(DeploymentUnit unit)
          Undeploy an deployment
 void setDisableOptional(boolean disableOptional)
          Should we disable optional flag.
 void undeploy(DeploymentUnit unit, T deployment)
          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, 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

AbstractOptionalRealDeployer

public AbstractOptionalRealDeployer(Class<T> optionalInput)
Create a new AbstractOptionalRealDeployer.

Parameters:
optionalInput - the optional input
Throws:
IllegalArgumentException - for null input
Method Detail

setDisableOptional

public void setDisableOptional(boolean disableOptional)
Should we disable optional flag. Falling back to similar behavior as AbstractSimpleRealDeployer.

Parameters:
disableOptional - the disable optional flag

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

public abstract void deploy(DeploymentUnit unit,
                            T deployment)
                     throws DeploymentException
Deploy

Parameters:
unit - the deployment unit
deployment - the optional attachment
Throws:
DeploymentException - for any error

internalUndeploy

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

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

undeploy

public void undeploy(DeploymentUnit unit,
                     T deployment)
Undeploy

Parameters:
unit - the deployment unit
deployment - the optional attachment


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