org.jboss.deployers.vfs.plugins.classloader
Class RequirementIntegrationDeployer<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>
              extended by org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer<T>
                  extended by org.jboss.deployers.vfs.plugins.classloader.RequirementIntegrationDeployer<T>
Type Parameters:
T - exact output type
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
CachingRequirementIntegrationDeployer

public abstract class RequirementIntegrationDeployer<T>
extends AbstractOptionalVFSRealDeployer<T>

Integration deployer. Adds integration requirement to deployment classpath.

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
RequirementIntegrationDeployer(Class<T> input)
           
 
Method Summary
 void deploy(VFSDeploymentUnit unit, T metaData)
          Deploy a deployment
 String getIntegrationModuleName()
          Get the integration module name.
 Set<String> getIntegrationModuleNames()
          Get integration module names.
protected abstract  org.jboss.classloading.spi.metadata.helpers.AbstractRequirement hasIntegrationModuleRequirement(org.jboss.classloading.spi.metadata.RequirementsMetaData requirements)
          Do we have integration module requirements.
protected  org.jboss.classloading.spi.metadata.helpers.AbstractRequirement hasIntegrationModuleRequirement(VFSDeploymentUnit unit, org.jboss.classloading.spi.metadata.RequirementsMetaData requirements)
          Do we have integration module requirements.
 void setIntegrationModuleName(String integrationModuleName)
          Set the intagration module name.
 void setIntegrationModuleNames(Set<String> integrationModuleNames)
          Set integration module names
 void start()
          Check if integration urls exist.
 void undeploy(VFSDeploymentUnit unit, T deployment)
          Undeploy a deployment
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer
deploy, undeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer
internalDeploy, internalUndeploy, setDisableOptional
 
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

RequirementIntegrationDeployer

public RequirementIntegrationDeployer(Class<T> input)
Method Detail

getIntegrationModuleName

public String getIntegrationModuleName()
Get the integration module name.

Returns:
the integration modeule name

setIntegrationModuleName

public void setIntegrationModuleName(String integrationModuleName)
Set the intagration module name.

Parameters:
integrationModuleName - the integration module name

getIntegrationModuleNames

public Set<String> getIntegrationModuleNames()
Get integration module names.

Returns:
the integration module names

setIntegrationModuleNames

public void setIntegrationModuleNames(Set<String> integrationModuleNames)
Set integration module names

Parameters:
integrationModuleNames - the integration modeul names

start

public void start()
Check if integration urls exist.


deploy

public void deploy(VFSDeploymentUnit unit,
                   T metaData)
            throws DeploymentException
Description copied from class: AbstractOptionalVFSRealDeployer
Deploy a deployment

Specified by:
deploy in class AbstractOptionalVFSRealDeployer<T>
Parameters:
unit - the unit
metaData - the attachment
Throws:
DeploymentException - for any error

undeploy

public void undeploy(VFSDeploymentUnit unit,
                     T deployment)
Description copied from class: AbstractOptionalVFSRealDeployer
Undeploy a deployment

Overrides:
undeploy in class AbstractOptionalVFSRealDeployer<T>
Parameters:
unit - the unit
deployment - the attachment

hasIntegrationModuleRequirement

protected org.jboss.classloading.spi.metadata.helpers.AbstractRequirement hasIntegrationModuleRequirement(VFSDeploymentUnit unit,
                                                                                                          org.jboss.classloading.spi.metadata.RequirementsMetaData requirements)
Do we have integration module requirements.

Parameters:
unit - the deployment unit
requirements - the current requirements
Returns:
integration core requirement

hasIntegrationModuleRequirement

protected abstract org.jboss.classloading.spi.metadata.helpers.AbstractRequirement hasIntegrationModuleRequirement(org.jboss.classloading.spi.metadata.RequirementsMetaData requirements)
Do we have integration module requirements.

Parameters:
requirements - the current requirements
Returns:
integration core requirement


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