|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.spi.deployer.helpers.AbstractDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<T>
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer<T>
org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer<T,Boolean>
org.jboss.deployers.vfs.spi.deployer.JAXPDeployer<T>
T - the expected typepublic abstract class JAXPDeployer<T>
JAXPDeployer is an abstract deployer that overrides parse to run a jaxp parse of the VirtualFile passed to parse.
parse(VFSDeploymentUnit, VirtualFile, Object),
doParse(VFSDeploymentUnit, VirtualFile)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered |
|---|
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 | |
|---|---|
JAXPDeployer(Class<T> output)
Create a new JAXPDeployer. |
|
| Method Summary | |
|---|---|
void |
create()
Create lifecycle |
protected org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactory<Boolean> |
createUnmarshallerFactory()
Create unmarshaller factory wrapper. |
void |
destroy()
Destroy lifecycle |
protected Document |
doParse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file)
Do the parsing |
protected Boolean |
fromString(String value)
Transform string to flag value. |
protected DocumentBuilderFactory |
getDocumentBuilderFactory()
Get the documentBuilderFactory. |
boolean |
isUseNamespaceAwareParser()
Get the useNamespaceAwareParser. |
boolean |
isValidateDTDs()
Get the validateDTDs. |
protected abstract T |
parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
Document document)
Parse a deployment |
protected T |
parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
T root)
Parse a deployment |
void |
setSchemaLocation(String schemaLocation)
Set schema location. |
void |
setUseNamespaceAwareParser(boolean useNamespaceAwareParser)
Set the useNamespaceAwareParser. |
void |
setValidateDTDs(boolean validateDTDs)
Set the validateDTDs. |
| 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 |
|---|
public JAXPDeployer(Class<T> output)
output - the output
IllegalArgumentException - for a null output| Method Detail |
|---|
public boolean isUseNamespaceAwareParser()
public void setUseNamespaceAwareParser(boolean useNamespaceAwareParser)
useNamespaceAwareParser - the useNamespaceAwareParser.public boolean isValidateDTDs()
public void setValidateDTDs(boolean validateDTDs)
validateDTDs - the validateDTDs.public void setSchemaLocation(String schemaLocation)
schemaLocation - the schema locationprotected DocumentBuilderFactory getDocumentBuilderFactory()
IllegalStateException - if the create method has not been invoked
public void create()
throws Exception
Exception - for any problempublic void destroy()
protected org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactory<Boolean> createUnmarshallerFactory()
UnmarshallerFactoryDeployer
createUnmarshallerFactory in class UnmarshallerFactoryDeployer<T,Boolean>protected Boolean fromString(String value)
UnmarshallerFactoryDeployer
fromString in class UnmarshallerFactoryDeployer<T,Boolean>value - the value
protected T parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
T root)
throws Exception
AbstractVFSParsingDeployer
parse in class AbstractVFSParsingDeployer<T>unit - the deployment unitfile - the metadata fileroot - - possibly null pre-existing root
Exception - for any error
protected Document doParse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file)
throws Exception
unit - the deployment unitfile - the metadata file
Exception - for any error
protected abstract T parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
Document document)
throws Exception
unit - the deployment unitfile - the metadata filedocument - the document
Exception - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||