|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentContext
DeploymentContext.
Method Summary | |
---|---|
void |
addChild(DeploymentContext child)
Add a child |
void |
addComponent(DeploymentContext component)
Add a component |
void |
addControllerContextName(Object name)
Add controller context name. |
void |
cleanup()
Cleanup the deployment context |
boolean |
createClassLoader(ClassLoaderFactory factory)
Create a classloader |
void |
deployed()
Touch the context to say it is deployed |
List<DeploymentContext> |
getChildren()
The children |
ClassLoader |
getClassLoader()
Gets the classloader for this deployment unit |
Comparator<DeploymentContext> |
getComparator()
Get the comparator. |
List<DeploymentContext> |
getComponents()
The components |
Object |
getControllerContextName()
Get underlying controller context name. |
Set<Object> |
getControllerContextNames()
Get the controller context names. |
org.jboss.dependency.spi.DependencyInfo |
getDependencyInfo()
Get the dependency info |
Deployment |
getDeployment()
Get the deployment (if this is a top level context) |
DeploymentUnit |
getDeploymentUnit()
Get the deployment unit |
org.jboss.metadata.spi.MetaData |
getMetaData()
Get the metadata for this deployment context |
org.jboss.metadata.spi.MutableMetaData |
getMutableMetaData()
Get the mutable metadata for this deployment context |
org.jboss.metadata.spi.scope.ScopeKey |
getMutableScope()
Get the mutable scope |
String |
getName()
Get the deployment name |
DeploymentContext |
getParent()
The parent |
Throwable |
getProblem()
Get the problem for this context |
int |
getRelativeOrder()
Get the relative order |
String |
getRelativePath()
Get the path of this deployment relative to the top of the deployment vfs path ------------------- relative path deploy/some.ear "" deploy/some.ear/x.ejb "/x.ejb" deploy/some.ear/y.sar "/y.sar" deploy/some.ear/y.sar/z.rar "/y.sar/z.rar" |
ClassLoader |
getResourceClassLoader()
Get a resource classloader |
DeploymentResourceLoader |
getResourceLoader()
Get a resource loader |
org.jboss.metadata.spi.scope.ScopeKey |
getScope()
Get the scope |
String |
getSimpleName()
Get the simple vfs name of the deployment unit. |
DeploymentState |
getState()
Get the deployment state |
DeploymentContext |
getTopLevel()
Get the top level deployment |
boolean |
isComponent()
Whether this is a component |
boolean |
isDeployed()
Whether the deployment was processed |
boolean |
isTopLevel()
Whether this is a top level deployment |
boolean |
removeChild(DeploymentContext child)
Remove a child |
void |
removeClassLoader()
Remove the classloader created by the factory |
void |
removeClassLoader(ClassLoaderFactory factory)
Remove the classloader |
boolean |
removeComponent(DeploymentContext component)
Remove a component |
void |
removeControllerContextName(Object name)
Remove controller context name. |
void |
setClassLoader(ClassLoader classLoader)
Set the class loader |
void |
setComparator(Comparator<DeploymentContext> comparator)
Set the comparator. |
void |
setDeployment(Deployment deployment)
Set the deployment |
void |
setDeploymentUnit(DeploymentUnit unit)
Set the deployment unit |
void |
setMutableScope(org.jboss.metadata.spi.scope.ScopeKey key)
Set the mutable scope |
void |
setParent(DeploymentContext parent)
Set the parent |
void |
setProblem(Throwable problem)
Set the problem for this context |
void |
setRelativeOrder(int relativeOrder)
Set the relative order |
void |
setRequiredStage(DeploymentStage stage)
Set the required stage. |
void |
setScope(org.jboss.metadata.spi.scope.ScopeKey key)
Set the scope |
void |
setState(DeploymentState state)
Set the deployment state |
void |
visit(DeploymentContextVisitor visitor)
Visit the context and the children |
Methods inherited from interface org.jboss.deployers.spi.attachments.ManagedObjectsWithTransientAttachments |
---|
getTransientAttachments |
Methods inherited from interface org.jboss.deployers.spi.attachments.ManagedObjectAttachments |
---|
getTransientManagedObjects |
Methods inherited from interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments |
---|
getPredeterminedManagedObjects, setPredeterminedManagedObjects |
Method Detail |
---|
String getName()
Set<Object> getControllerContextNames()
void addControllerContextName(Object name)
name
- the controller context namevoid removeControllerContextName(Object name)
name
- the controller context nameString getSimpleName()
String getRelativePath()
int getRelativeOrder()
void setRelativeOrder(int relativeOrder)
relativeOrder
- the relativeOrderComparator<DeploymentContext> getComparator()
void setComparator(Comparator<DeploymentContext> comparator)
comparator
- the comparator.org.jboss.metadata.spi.scope.ScopeKey getScope()
void setScope(org.jboss.metadata.spi.scope.ScopeKey key)
key
- the scope keyorg.jboss.metadata.spi.scope.ScopeKey getMutableScope()
void setMutableScope(org.jboss.metadata.spi.scope.ScopeKey key)
key
- the mutable scope keyorg.jboss.metadata.spi.MetaData getMetaData()
org.jboss.metadata.spi.MutableMetaData getMutableMetaData()
DeploymentState getState()
void setState(DeploymentState state)
state
- the stateDeployment getDeployment()
void setDeployment(Deployment deployment)
deployment
- the deployment
IllegalArgumentException
- for a null deploymentDeploymentUnit getDeploymentUnit()
void setDeploymentUnit(DeploymentUnit unit)
unit
- the deployment unitClassLoader getClassLoader()
void setClassLoader(ClassLoader classLoader)
classLoader
- the new classloaderboolean createClassLoader(ClassLoaderFactory factory) throws DeploymentException
factory
- the factory
DeploymentException
- for any errorvoid removeClassLoader()
void removeClassLoader(ClassLoaderFactory factory)
factory
- the original factory used to create the classloaderboolean isTopLevel()
DeploymentContext getTopLevel()
DeploymentContext getParent()
void setParent(DeploymentContext parent)
parent
- the parentList<DeploymentContext> getChildren()
void addChild(DeploymentContext child)
child
- the child to addboolean removeChild(DeploymentContext child)
child
- the child to remove
boolean isComponent()
List<DeploymentContext> getComponents()
void addComponent(DeploymentContext component)
component
- the componnet to addboolean removeComponent(DeploymentContext component)
component
- the component to remove
DeploymentResourceLoader getResourceLoader()
ClassLoader getResourceClassLoader()
Object getControllerContextName()
void setRequiredStage(DeploymentStage stage)
stage
- the required stageorg.jboss.dependency.spi.DependencyInfo getDependencyInfo()
void visit(DeploymentContextVisitor visitor) throws DeploymentException
visitor
- the visitor
DeploymentException
- for any error in the visitor
IllegalArgumentException
- for a null visitorboolean isDeployed()
void deployed()
Throwable getProblem()
void setProblem(Throwable problem)
problem
- the problemvoid cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |