org.jboss.deployment
Class AppParsingDeployer

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.ear.spec.EarMetaData>
                              extended by org.jboss.deployment.AppParsingDeployer
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 AppParsingDeployer
extends org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer<org.jboss.metadata.ear.spec.EarMetaData>

An SchemaResolverDeployer for translating application.xml descriptors into Ear50MetaData 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
AppParsingDeployer()
           
 
Method Summary
 String getAppXmlPath()
          Get the virtual file path for the application descriptor in the DeploymentContext.getMetaDataPath.
protected  org.jboss.metadata.ear.spec.EarMetaData parse(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.virtual.VirtualFile file, org.jboss.metadata.ear.spec.EarMetaData root)
           
 void setAppXmlPath(String appXmlPath)
          Set the virtual file path for the application descriptor in the DeploymentContext.getMetaDataLocation.
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer
create, destroy, getNamespace, isRegisterWithJBossXB, 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, 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

AppParsingDeployer

public AppParsingDeployer()
Method Detail

getAppXmlPath

public String getAppXmlPath()
Get the virtual file path for the application descriptor in the DeploymentContext.getMetaDataPath.

Returns:
the current virtual file path for the application descriptor

setAppXmlPath

public void setAppXmlPath(String appXmlPath)
Set the virtual file path for the application descriptor in the DeploymentContext.getMetaDataLocation. The standard path is application.xml to be found in the META-INF metdata path.

Parameters:
appXmlPath - - new virtual file path for the application descriptor

parse

protected org.jboss.metadata.ear.spec.EarMetaData parse(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                                        org.jboss.virtual.VirtualFile file,
                                                        org.jboss.metadata.ear.spec.EarMetaData root)
                                                 throws Exception
Overrides:
parse in class org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer<org.jboss.metadata.ear.spec.EarMetaData>
Throws:
Exception


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