org.jboss.deployment
Class JBossWebAppParsingDeployer

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer
          extended by org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<T>
              extended by org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer<T>
                  extended by org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer<T,Boolean>
                      extended by org.jboss.deployers.vfs.spi.deployer.JBossXBDeployer<T>
                          extended by org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer<org.jboss.metadata.web.jboss.JBossWebMetaData>
                              extended by org.jboss.deployment.JBossWebAppParsingDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.deployer.matchers.JarExtensionProvider, org.jboss.deployers.spi.Ordered, org.jboss.deployers.vfs.spi.deployer.FileMatcher

public class JBossWebAppParsingDeployer
extends org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer<org.jboss.metadata.web.jboss.JBossWebMetaData>

An ObjectModelFactoryDeployer for translating jboss-web.xml descriptors into WebMetaData instances.

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org, adrian@jboss.org

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
JBossWebAppParsingDeployer()
          Create a new JBossWebAppParsingDeployer.
 
Method Summary
protected  void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit, String name, String suffix)
           
protected  void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit, String name, String suffix, String key)
          Make sure we always have a JBossWebMetaData object attached, even if there is no jboss-web.xml in the deployment
 String getWebXmlPath()
          Get the virtual file path for the jboss-web descriptor in the DeploymentContext.getMetaDataPath.
 void setWebXmlPath(String webXmlPath)
          Set the virtual file path for the jboss-web descriptor in the DeploymentContext.getMetaDataLocation.
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer
create, destroy, getNamespace, isRegisterWithJBossXB, parse, parse, setRegisterWithJBossXB
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.JBossXBDeployer
createUnmarshallerFactory, fromString, getHelper, isUseSchemaValidation, isUseValidation, setUseSchemaValidation, setUseValidation
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer
getFeatures, isUseDefaultFeatures, setFeatures, setUseDefaultFeatures, start
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer
accepts, accepts, allowsMultipleFiles, getAltMappings, getMetadataFile, handleMultipleFiles, init, isDeployable, matchFileToClass, mergeFiles, openStreamAndValidate, parse, parse, parse, parse, parseAndInit, setAllowMultipleFiles
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput
allowsReparse, createMetaData, createMetaData, deploy, getAttachmentKey, getJarExtension, getMetaData, getName, getNames, getOutput, getSuffix, isBuildManagedObject, isIncludeDeploymentFile, setAttachmentKey, setBuildManagedObject, setIncludeDeploymentFile, setJarExtension, setName, setNames, setSuffix
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossWebAppParsingDeployer

public JBossWebAppParsingDeployer()
Create a new JBossWebAppParsingDeployer.

Method Detail

getWebXmlPath

public String getWebXmlPath()
Get the virtual file path for the jboss-web descriptor in the DeploymentContext.getMetaDataPath.

Returns:
the current virtual file path for the web-app descriptor

setWebXmlPath

public void setWebXmlPath(String webXmlPath)
Set the virtual file path for the jboss-web descriptor in the DeploymentContext.getMetaDataLocation. The standard path is jboss-web.xml to be found in the WEB-INF metdata path.

Parameters:
webXmlPath - - new virtual file path for the web-app descriptor

createMetaData

protected void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                              String name,
                              String suffix)
                       throws org.jboss.deployers.spi.DeploymentException
Overrides:
createMetaData in class org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<org.jboss.metadata.web.jboss.JBossWebMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException

createMetaData

protected void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                              String name,
                              String suffix,
                              String key)
                       throws org.jboss.deployers.spi.DeploymentException
Make sure we always have a JBossWebMetaData object attached, even if there is no jboss-web.xml in the deployment

Overrides:
createMetaData in class org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<org.jboss.metadata.web.jboss.JBossWebMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException


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