|
||||||||||
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.MultipleVFSParsingDeployer<T>
T
- the expected typepublic abstract class MultipleVFSParsingDeployer<T>
Multiple VFS parsing deployer.
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 | |
---|---|
MultipleVFSParsingDeployer(Class<T> output,
Map<String,Class<?>> mappings)
|
|
MultipleVFSParsingDeployer(Class<T> output,
Map<String,Class<?>> mappings,
String suffix,
Class<?> suffixClass)
|
Method Summary | ||
---|---|---|
protected
|
getInstance(Map<Class<?>,List<Object>> metadata,
Class<S> clazz)
Get single metadata instance from metadata. |
|
Map<String,Class<?>> |
getMappings()
Get mappings. |
|
Class<?> |
getSuffixClass()
Get suffix class. |
|
protected Class<?> |
matchFileToClass(DeploymentUnit unit,
String fileName)
Match file name to metadata class. |
|
protected Class<?> |
matchFileToClass(DeploymentUnit unit,
String fileName,
boolean throwException)
Match file name mappings. |
|
protected Class<?> |
matchFileToClass(DeploymentUnit unit,
org.jboss.virtual.VirtualFile file)
Match file to mapping metadata class. |
|
protected T |
mergeFiles(VFSDeploymentUnit unit,
T root,
List<org.jboss.virtual.VirtualFile> files,
Set<String> missingFiles)
Merge files into one piece of metatdata |
|
protected abstract T |
mergeMetaData(VFSDeploymentUnit unit,
Map<Class<?>,List<Object>> metadata)
Merge metadatas into single piece of metatdata |
|
protected T |
mergeMetaData(VFSDeploymentUnit unit,
T root,
Map<Class<?>,List<Object>> metadata,
Set<String> missingFiles)
Merge metadatas into single piece of metatdata |
|
protected abstract
|
parse(Class<U> expectedType,
org.jboss.virtual.VirtualFile file,
Object root)
Parse file to produce expected class metadata. |
|
protected T |
parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
T root)
Parse a deployment |
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer |
---|
accepts, accepts, allowsMultipleFiles, getAltMappings, getMetadataFile, handleMultipleFiles, init, isDeployable, 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 MultipleVFSParsingDeployer(Class<T> output, Map<String,Class<?>> mappings)
public MultipleVFSParsingDeployer(Class<T> output, Map<String,Class<?>> mappings, String suffix, Class<?> suffixClass)
Method Detail |
---|
protected Class<?> matchFileToClass(DeploymentUnit unit, org.jboss.virtual.VirtualFile file)
unit
- the deployment unitfile
- the file
protected Class<?> matchFileToClass(DeploymentUnit unit, String fileName)
AbstractVFSParsingDeployer
matchFileToClass
in class AbstractVFSParsingDeployer<T>
unit
- the deployment unitfileName
- the file name
protected Class<?> matchFileToClass(DeploymentUnit unit, String fileName, boolean throwException)
unit
- the deployment unitfileName
- the file namethrowException
- should we throw an exception if no match found
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 errorprotected abstract <U> U parse(Class<U> expectedType, org.jboss.virtual.VirtualFile file, Object root) throws Exception
U
- the expect typeexpectedType
- the expected classfile
- the file to parseroot
- the previous root
Exception
- for any errorprotected T mergeFiles(VFSDeploymentUnit unit, T root, List<org.jboss.virtual.VirtualFile> files, Set<String> missingFiles) throws Exception
AbstractVFSParsingDeployer
mergeFiles
in class AbstractVFSParsingDeployer<T>
unit
- the unitroot
- possibly null pre-existing rootfiles
- matching meta filesmissingFiles
- file names that are missing matching file
Exception
- for any errorprotected T mergeMetaData(VFSDeploymentUnit unit, T root, Map<Class<?>,List<Object>> metadata, Set<String> missingFiles) throws Exception
unit
- the unitroot
- possibly null pre-existing rootmetadata
- the metadatasmissingFiles
- file names that are missing matching file
Exception
- for any errorprotected abstract T mergeMetaData(VFSDeploymentUnit unit, Map<Class<?>,List<Object>> metadata) throws Exception
unit
- the unitmetadata
- the metadatas
Exception
- for any errorprotected <S> S getInstance(Map<Class<?>,List<Object>> metadata, Class<S> clazz)
S
- the metadata typemetadata
- the metadatas mapclazz
- metadata class
public Map<String,Class<?>> getMappings()
public Class<?> getSuffixClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |