|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.vfs.spi.structure.StructureContext
public class StructureContext
StructureContext.
Constructor Summary | |
---|---|
StructureContext(org.jboss.virtual.VirtualFile file,
StructureMetaData metaData,
StructureContext parentContext)
Create a new child structure context |
|
StructureContext(org.jboss.virtual.VirtualFile root,
StructureMetaData metaData,
VFSStructuralDeployers deployers)
Create a new structure context from a root |
|
StructureContext(org.jboss.virtual.VirtualFile root,
org.jboss.virtual.VirtualFile parent,
org.jboss.virtual.VirtualFile file,
StructureMetaData metaData,
VFSStructuralDeployers deployers,
StructureContext parentContext)
Create a new structure context from a root |
Method Summary | ||
---|---|---|
void |
addCallback(Object callback)
Add the callback. |
|
void |
addChild(ContextInfo child)
Add a child context |
|
boolean |
determineChildStructure(org.jboss.virtual.VirtualFile child)
Determine the child structure |
|
|
getCallbacks(Class<T> callbackType)
Get the matching callbacks. |
|
VFSStructuralDeployers |
getDeployers()
Get the deployers. |
|
org.jboss.virtual.VirtualFile |
getFile()
Get the file. |
|
StructureMetaData |
getMetaData()
Get the metaData. |
|
String |
getName()
Get the file name |
|
org.jboss.virtual.VirtualFile |
getParent()
Get the parent. |
|
StructureContext |
getParentContext()
Get the parentContext. |
|
org.jboss.virtual.VirtualFile |
getRoot()
Get the root. |
|
boolean |
isCandidateAnnotationScanning()
Get the candidate annotation scanning. |
|
boolean |
isTopLevel()
Whether this is top level. |
|
void |
removeChild(ContextInfo child)
Remove a child context |
|
void |
setCallbacks(Set<Object> callbacks)
Set the callbacks. |
|
void |
setCandidateAnnotationScanning(boolean candidateAnnotationScanning)
Set the candidate annotation scanning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructureContext(org.jboss.virtual.VirtualFile root, org.jboss.virtual.VirtualFile parent, org.jboss.virtual.VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers, StructureContext parentContext)
root
- the root fileparent
- the parent filefile
- the current filemetaData
- the structure metadata to builddeployers
- the available structure deployersparentContext
- the parentContext
IllegalArgumentException
- for a null parameter (parents can be null)public StructureContext(org.jboss.virtual.VirtualFile root, StructureMetaData metaData, VFSStructuralDeployers deployers)
root
- the root filemetaData
- the structure metadata to builddeployers
- the available structure deployers
IllegalArgumentException
- for a null parameterpublic StructureContext(org.jboss.virtual.VirtualFile file, StructureMetaData metaData, StructureContext parentContext)
file
- the candidate filemetaData
- the structure metadata to buildparentContext
- the parentContext
IllegalArgumentException
- for a null parameterMethod Detail |
---|
public String getName()
public org.jboss.virtual.VirtualFile getRoot()
public org.jboss.virtual.VirtualFile getParent()
public boolean isTopLevel()
public org.jboss.virtual.VirtualFile getFile()
public StructureMetaData getMetaData()
public VFSStructuralDeployers getDeployers()
public StructureContext getParentContext()
public boolean isCandidateAnnotationScanning()
public void setCandidateAnnotationScanning(boolean candidateAnnotationScanning)
candidateAnnotationScanning
- the candidate annotation scanningpublic <T> Set<T> getCallbacks(Class<T> callbackType)
T
- exact callback typecallbackType
- the exact callback type
public void addCallback(Object callback)
callback
- the callbackpublic void setCallbacks(Set<Object> callbacks)
callbacks
- the callbackspublic boolean determineChildStructure(org.jboss.virtual.VirtualFile child) throws DeploymentException
child
- the child
DeploymentException
- for any errorpublic void addChild(ContextInfo child)
child
- the childpublic void removeChild(ContextInfo child)
child
- the child
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |