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

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractAllInputDeployer
All Implemented Interfaces:
Deployer, Ordered

public abstract class AbstractAllInputDeployer
extends AbstractDeployer

Check all required inputs.

Author:
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
AbstractAllInputDeployer()
           
 
Method Summary
 void addOptionalInput(Class<?> input)
          Add optional input.
 void addOptionalInput(String input)
          Add optional input.
 void deploy(DeploymentUnit unit)
          Deploy a deployment
protected  boolean hasAllRequiredInputs(DeploymentUnit unit)
          Do we have all required inputs.
protected abstract  void internalDeploy(DeploymentUnit unit)
          Deploy a deployment
protected  void internalUndeploy(DeploymentUnit unit)
          Undeploy an deployment
 void setOptionalInputs(Set<String> optionalInputs)
          Set optional inputs.
 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

AbstractAllInputDeployer

public AbstractAllInputDeployer()
Method Detail

hasAllRequiredInputs

protected boolean hasAllRequiredInputs(DeploymentUnit unit)
Do we have all required inputs.

Parameters:
unit - the deployment unit
Returns:
true if all inputs exist

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

internalDeploy

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

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

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

addOptionalInput

public void addOptionalInput(Class<?> input)
Add optional input.

Parameters:
input - the input

addOptionalInput

public void addOptionalInput(String input)
Add optional input.

Parameters:
input - the input

setOptionalInputs

public void setOptionalInputs(Set<String> optionalInputs)
Set optional inputs.

Parameters:
optionalInputs - the optional inputs


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