org.jboss.deployers.vfs.spi.deployer
Class AbstractOptionalVFSRealDeployer<T>
java.lang.Object
org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer<T>
org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer<T>
- Type Parameters:
T - the deployment type
- All Implemented Interfaces:
- Deployer, Ordered
- Direct Known Subclasses:
- AnnotationEnvironmentDeployer, RequirementIntegrationDeployer, UrlIntegrationDeployer, VFSClassLoaderClassPathDeployer
public abstract class AbstractOptionalVFSRealDeployer<T>
- extends AbstractOptionalRealDeployer<T>
An abstract more complicated VFS real deployer where the input
is optional instead of mandatory.
- Version:
- $Revision: 64469 $
- Author:
- Carlo de Wolf, adrian@jboss.org
| 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 |
AbstractOptionalVFSRealDeployer
public AbstractOptionalVFSRealDeployer(Class<T> optionalInput)
- Create a new AbstractOptionalVFSRealDeployer.
- Parameters:
optionalInput - the optional input
- Throws:
IllegalArgumentException - for null input
deploy
public void deploy(DeploymentUnit unit,
T deployment)
throws DeploymentException
- Description copied from class:
AbstractOptionalRealDeployer
- Deploy
- Specified by:
deploy in class AbstractOptionalRealDeployer<T>
- Parameters:
unit - the deployment unitdeployment - the optional attachment
- Throws:
DeploymentException - for any error
deploy
public abstract void deploy(VFSDeploymentUnit unit,
T deployment)
throws DeploymentException
- Deploy a deployment
- Parameters:
unit - the unitdeployment - the attachment
- Throws:
DeploymentException - for any error
undeploy
public void undeploy(DeploymentUnit unit,
T deployment)
- Description copied from class:
AbstractOptionalRealDeployer
- Undeploy
- Overrides:
undeploy in class AbstractOptionalRealDeployer<T>
- Parameters:
unit - the deployment unitdeployment - the optional attachment
undeploy
public void undeploy(VFSDeploymentUnit unit,
T deployment)
- Undeploy a deployment
- Parameters:
unit - the unitdeployment - the attachment
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.