|
||||||||||
| 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
public abstract class AbstractStructureDeployer
AbstractStructureDeployer.
We don't care about the order by default.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered |
|---|
org.jboss.deployers.spi.Ordered.OrderedComparator |
| Field Summary | |
|---|---|
protected org.jboss.logging.Logger |
log
The log |
| Fields inherited from interface org.jboss.deployers.spi.Ordered |
|---|
COMPARATOR |
| Constructor Summary | |
|---|---|
AbstractStructureDeployer()
|
|
| Method Summary | |
|---|---|
protected void |
addAllChildren(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile parent,
org.jboss.deployers.spi.structure.StructureMetaData metaData,
VFSStructuralDeployers deployers)
Add all children as candidates |
protected void |
addChildren(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile parent,
org.jboss.deployers.spi.structure.StructureMetaData metaData,
VFSStructuralDeployers deployers,
org.jboss.virtual.VisitorAttributes attributes)
Add all children as candidates |
protected void |
addClassPath(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile entry,
boolean includeEntry,
boolean includeRootManifestCP,
org.jboss.deployers.spi.structure.ContextInfo context)
Add an entry to the context classpath. |
protected org.jboss.deployers.spi.structure.ContextInfo |
createContext(org.jboss.virtual.VirtualFile root,
String metaDataPath,
org.jboss.deployers.spi.structure.StructureMetaData structureMetaData)
Create a context |
CandidateStructureVisitorFactory |
getCandidateStructureVisitorFactory()
Get the candidateStructureVisitorFactory. |
int |
getRelativeOrder()
|
static String |
getRelativePath(org.jboss.virtual.VirtualFile parent,
org.jboss.virtual.VirtualFile child)
Get the relative path between two virtual files |
protected boolean |
isLeaf(org.jboss.virtual.VirtualFile file)
Tests whether the virtual file is a leaf |
boolean |
isTopLevel(org.jboss.virtual.VirtualFile parent)
See if a file corresponds to a top-level deployment. |
void |
setCandidateStructureVisitorFactory(CandidateStructureVisitorFactory candidateStructureVisitorFactory)
Set the candidateStructureVisitorFactory. |
void |
setRelativeOrder(int order)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.deployers.vfs.spi.structure.StructureDeployer |
|---|
determineStructure |
| Field Detail |
|---|
protected org.jboss.logging.Logger log
| Constructor Detail |
|---|
public AbstractStructureDeployer()
| Method Detail |
|---|
public static final String getRelativePath(org.jboss.virtual.VirtualFile parent,
org.jboss.virtual.VirtualFile child)
parent - the parentchild - the child
public int getRelativeOrder()
getRelativeOrder in interface org.jboss.deployers.spi.Orderedpublic void setRelativeOrder(int order)
setRelativeOrder in interface org.jboss.deployers.spi.Orderedpublic CandidateStructureVisitorFactory getCandidateStructureVisitorFactory()
public void setCandidateStructureVisitorFactory(CandidateStructureVisitorFactory candidateStructureVisitorFactory)
candidateStructureVisitorFactory - the candidateStructureVisitorFactory.
IllegalArgumentException - for a null candidate structurepublic boolean isTopLevel(org.jboss.virtual.VirtualFile parent)
parent - the parent file
protected void addClassPath(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile entry,
boolean includeEntry,
boolean includeRootManifestCP,
org.jboss.deployers.spi.structure.ContextInfo context)
throws IOException
root - - the root file the classpath entry should be relative toentry - - the candidate file to add as a classpath entryincludeEntry - - a flag indicating if the entry should be added to
the classpathincludeRootManifestCP - - a flag indicating if the entry metainf
manifest classpath should be included.context - - the context to populate
IOException - on any IO error
protected void addAllChildren(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile parent,
org.jboss.deployers.spi.structure.StructureMetaData metaData,
VFSStructuralDeployers deployers)
throws Exception
root - the root contextparent - the parent contextmetaData - the structure meta datadeployers - the structure deployers
Exception - for any error
protected void addChildren(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile parent,
org.jboss.deployers.spi.structure.StructureMetaData metaData,
VFSStructuralDeployers deployers,
org.jboss.virtual.VisitorAttributes attributes)
throws Exception
root - the root contextparent - the parent contextmetaData - the structure meta datadeployers - the structure deployersattributes - the visitor attributes uses VisitorAttributes.DEFAULT when null
Exception - for any error
protected boolean isLeaf(org.jboss.virtual.VirtualFile file)
throws IOException
file - the virtual file
IOException - for any error
protected org.jboss.deployers.spi.structure.ContextInfo createContext(org.jboss.virtual.VirtualFile root,
String metaDataPath,
org.jboss.deployers.spi.structure.StructureMetaData structureMetaData)
root - the root contextmetaDataPath - the metadata pathstructureMetaData - the structure metadata
IllegalArgumentException - for a null root or structure metaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||