org.jboss.deployment
Class JBossAppParsingDeployer

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.jboss.JBossAppMetaData>
                              extended by org.jboss.deployment.JBossAppParsingDeployer
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, JBossAppParsingDeployerMBean

public class JBossAppParsingDeployer
extends org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer<org.jboss.metadata.ear.jboss.JBossAppMetaData>
implements JBossAppParsingDeployerMBean

An ObjectModelFactoryDeployer for translating jboss-app.xml descriptors into JBossAppMetaData instances.

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org, Anil.Saldhana@redhat.com, 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
JBossAppParsingDeployer()
          Create a new JBossAppParsingDeployer.
 
Method Summary
protected  void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit, String name, String suffix)
           
 String getAppXmlPath()
          Get the virtual file path for the application descriptor in the DeploymentContext.getMetaDataPath.
 String getUnauthenticatedIdentity()
          Obtain an unauthenticated identity
 boolean isCallByValue()
           
 void setAppXmlPath(String appXmlPath)
          Set the virtual file path for the application descriptor in the DeploymentContext.getMetaDataLocation.
 void setCallByValue(boolean callByValue)
           
 void setUnauthenticatedIdentity(String unauthenticatedIdentity)
          Specify an unauthenticated identity
 
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, 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

JBossAppParsingDeployer

public JBossAppParsingDeployer()
Create a new JBossAppParsingDeployer.

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 jboss-app.xml to be found in the META-INF metdata path.

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

isCallByValue

public boolean isCallByValue()
Specified by:
isCallByValue in interface JBossAppParsingDeployerMBean
Returns:
whether ear deployments should be call by value

setCallByValue

public void setCallByValue(boolean callByValue)
Specified by:
setCallByValue in interface JBossAppParsingDeployerMBean
Parameters:
callByValue - whether ear deployments should be call by value

getUnauthenticatedIdentity

public String getUnauthenticatedIdentity()
Obtain an unauthenticated identity

Returns:
the unauthenticated identity

setUnauthenticatedIdentity

public void setUnauthenticatedIdentity(String unauthenticatedIdentity)
Specify an unauthenticated identity

Parameters:
unauthenticatedIdentity -

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.ear.jboss.JBossAppMetaData>
Throws:
org.jboss.deployers.spi.DeploymentException


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