|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer
org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer
org.jboss.deployers.vfs.plugins.structure.file.FileStructure
public class FileStructure
FileStructure is a simple suffix recognition structure 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.vfs.spi.structure.helpers.AbstractStructureDeployer |
---|
log |
Fields inherited from interface org.jboss.deployers.spi.Ordered |
---|
COMPARATOR |
Constructor Summary | |
---|---|
FileStructure()
Create a new FileStructure. |
|
FileStructure(Set<String> suffixes)
Create a new FileStructure. |
Method Summary | |
---|---|
boolean |
addFileMatcher(FileMatcher fm)
|
static boolean |
addFileSuffix(String suffix)
Add a file suffix |
protected boolean |
checkFileMatchers(org.jboss.virtual.VirtualFile file)
Check is some file matcher recognizes the file. |
boolean |
determineStructure(StructureContext structureContext)
Determine the structure of a deployment |
Set<String> |
getSuffixes()
Gets the list of suffixes recognised as files |
static boolean |
isKnownFile(String name)
Whether this is an archive |
boolean |
removeFileMatcher(FileMatcher fm)
|
static boolean |
removeFileSuffix(String suffix)
Remove a file suffix |
Methods inherited from class org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer |
---|
createAnnotationEnvironment, setExcluded, setFilter, setIncluded, setRecurseFilter |
Methods inherited from class org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer |
---|
addAllChildren, addAllChildren, addCandidateAnnotation, addChildren, addChildren, addClassPath, applyContextInfo, applyMetadataPath, applyMetadataPaths, applyStructure, checkCandidateAnnotations, createContext, createContext, createContext, getCandidateAnnotations, getCandidateStructureVisitorFactory, getRelativeOrder, getRelativePath, getRelativePath, isLeaf, isSupportsCandidateAnnotations, setCandidateAnnotations, setCandidateStructureVisitorFactory, setContextInfoOrder, setRelativeOrder, setSupportsCandidateAnnotations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStructure()
public FileStructure(Set<String> suffixes)
suffixes
- the recognised suffixes
IllegalArgumentException
- for null suffixesMethod Detail |
---|
public Set<String> getSuffixes()
public static boolean addFileSuffix(String suffix)
suffix
- the suffix
IllegalArgumentException
- for a null suffixpublic static boolean removeFileSuffix(String suffix)
suffix
- the suffix
IllegalArgumentException
- for a null suffixpublic boolean addFileMatcher(FileMatcher fm)
public boolean removeFileMatcher(FileMatcher fm)
public static boolean isKnownFile(String name)
name
- the name
IllegalArgumentException
- for a null nameprotected boolean checkFileMatchers(org.jboss.virtual.VirtualFile file)
file
- the virtual file
public boolean determineStructure(StructureContext structureContext) throws DeploymentException
StructureDeployer
structureContext
- the structure context
DeploymentException
- for an error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |