org.jboss.jsfunit.microdeployer
Class JSFUnitDeployer

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.AbstractSimpleRealDeployer<T>
              extended by org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer<org.jboss.metadata.web.jboss.JBossWebMetaData>
                  extended by org.jboss.jsfunit.microdeployer.JSFUnitDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered

public class JSFUnitDeployer
extends org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer<org.jboss.metadata.web.jboss.JBossWebMetaData>

The JSFUnitDeployer automatically adds the needed servlets and servlet filters to a WAR. It will also add all the JSFUnit classes and dependencies. Optionally, it can also add user-defined directories and jars to the classpath of the WAR.

Since:
1.0
Author:
Stan Silvert

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
JSFUnitDeployer()
          Create a new deployer.
 
Method Summary
 void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
           
 void setClasspathURLs(Collection<String> classpathUrls)
          A collection of URL strings to add to the classpath of the WAR.
 void setWarSuffixes(Collection<String> warSuffixes)
          Set the collection of suffixes that this deployer will use to choose which wars to "JSFUnify".
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer
deploy, undeploy, undeploy
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer
getInput, internalDeploy, internalUndeploy
 
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, 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

JSFUnitDeployer

public JSFUnitDeployer()
Create a new deployer.

Method Detail

setWarSuffixes

public void setWarSuffixes(Collection<String> warSuffixes)
Set the collection of suffixes that this deployer will use to choose which wars to "JSFUnify". For example, if the suffixes were "_jsfunit" and "mywar", then mywar.war and foo_jsfunit.war would match.

Parameters:
warSuffixes - The case-insensitive suffix (less the ".war").

setClasspathURLs

public void setClasspathURLs(Collection<String> classpathUrls)
A collection of URL strings to add to the classpath of the WAR. If the URL points to a directory then the directory and any jar found under that director will also be added.

Parameters:
classpathUrls - The url strings.

deploy

public void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                   org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
            throws org.jboss.deployers.spi.DeploymentException
Specified by:
deploy in class org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer<org.jboss.metadata.web.jboss.JBossWebMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.