org.jboss.deployers.vfs.plugins.classloader
Class UrlIntegrationDeployer<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.UrlIntegrationDeployer<T>
Type Parameters:
T - exact output type
All Implemented Interfaces:
Deployer, Ordered
Direct Known Subclasses:
FilesUrlIntegrationDeployer

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

Integration deployer. Adds integration path 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
static String IS_INTEGRATION_FLAG_KEY
          The is integration cached flag key
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
UrlIntegrationDeployer(Class<T> input)
           
 
Method Summary
 void deploy(VFSDeploymentUnit unit, T metaData)
          Deploy a deployment
protected  String getDeployerLocation()
          Get the deployer's location.
 URL getIntegrationURL()
          Get the integration url.
 Set<URL> getIntegrationURLs()
          Get integration urls.
protected abstract  boolean isIntegrationDeployment(VFSDeploymentUnit unit)
          Is unit integration deployment unit?
protected  boolean isIntegrationDeployment(VFSDeploymentUnit unit, T metaData)
          Is unit integration deployment unit?
 void setIntegrationURL(URL url)
          Set integration url.
 void setIntegrationURLs(Set<URL> integrationURLs)
          Set integration urls.
 void start()
          Check if integration urls exist.
 void undeploy(VFSDeploymentUnit unit, T metaData)
          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
 

Field Detail

IS_INTEGRATION_FLAG_KEY

public static final String IS_INTEGRATION_FLAG_KEY
The is integration cached flag key

Constructor Detail

UrlIntegrationDeployer

public UrlIntegrationDeployer(Class<T> input)
Method Detail

getIntegrationURL

public URL getIntegrationURL()
Get the integration url.

Returns:
the integration url

setIntegrationURL

public void setIntegrationURL(URL url)
Set integration url.

Parameters:
url - the integration url

getIntegrationURLs

public Set<URL> getIntegrationURLs()
Get integration urls.

Returns:
the integration urls

setIntegrationURLs

public void setIntegrationURLs(Set<URL> integrationURLs)
Set integration urls.

Parameters:
integrationURLs - the integration urls

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 metaData)
Description copied from class: AbstractOptionalVFSRealDeployer
Undeploy a deployment

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

getDeployerLocation

protected String getDeployerLocation()
Get the deployer's location. Might be useful for integration url creation.

Returns:
the deployer's location

isIntegrationDeployment

protected boolean isIntegrationDeployment(VFSDeploymentUnit unit,
                                          T metaData)
Is unit integration deployment unit?

Parameters:
unit - the deployment unit
metaData - the meta data
Returns:
true if the unit is integration deployment

isIntegrationDeployment

protected abstract boolean isIntegrationDeployment(VFSDeploymentUnit unit)
Is unit integration deployment unit?

Parameters:
unit - the deployment unit
Returns:
true if the unit is integration deployment


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