org.jboss.webbeans.integration.deployer.metadata
Class WebBeansFilesDeployer

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<JBossWebBeansMetaData>
                  extended by org.jboss.webbeans.integration.deployer.metadata.WebBeansFilesDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered

public class WebBeansFilesDeployer
extends org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer<JBossWebBeansMetaData>

A deployer that collects all beans.xml files in deployment unit and keeps them under WEB_BEANS_FILES constant. It also collects wb's matching classpaths, under WEB_BEANS_CLASSPATH const.

Author:
Ales Justin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.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
WebBeansFilesDeployer()
           
 
Method Summary
 void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, JBossWebBeansMetaData deployment)
           
protected  Iterable<org.jboss.virtual.VirtualFile> getClassPaths(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit)
          Get the matching class paths that belong to this deployment unit.
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer
deploy, undeploy, 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

WebBeansFilesDeployer

public WebBeansFilesDeployer()
Method Detail

deploy

public void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                   JBossWebBeansMetaData deployment)
            throws org.jboss.deployers.spi.DeploymentException
Specified by:
deploy in class org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer<JBossWebBeansMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException

getClassPaths

protected Iterable<org.jboss.virtual.VirtualFile> getClassPaths(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit)
                                                         throws Exception
Get the matching class paths that belong to this deployment unit.

Parameters:
unit - the deployment unit
Returns:
matching class paths
Throws:
Exception - for any error


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