|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.structure.spi.helpers.ComponentDeploymentContext
public class ComponentDeploymentContext
AbstractDeploymentContext.
| Field Summary | |
|---|---|
protected org.jboss.logging.Logger |
log
The log |
| Constructor Summary | |
|---|---|
ComponentDeploymentContext()
For serialization |
|
ComponentDeploymentContext(String name,
DeploymentContext parent)
Create a new ComponentDeploymentContext. |
|
| 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 |
Set<Object> |
getControllerContextNames()
Get the controller context names. |
org.jboss.dependency.spi.DependencyInfo |
getDependencyInfo()
Get the dependency info |
org.jboss.deployers.client.spi.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 |
org.jboss.deployers.spi.attachments.Attachments |
getPredeterminedManagedObjects()
|
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. |
org.jboss.deployers.spi.DeploymentState |
getState()
Get the deployment state |
DeploymentContext |
getTopLevel()
Get the top level deployment |
org.jboss.deployers.spi.attachments.MutableAttachments |
getTransientAttachments()
|
org.jboss.deployers.spi.attachments.MutableAttachments |
getTransientManagedObjects()
|
Set<String> |
getTypes()
Get the deployment types associated with this 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(org.jboss.deployers.client.spi.Deployment deployment)
Set the deployment |
void |
setDeploymentUnit(DeploymentUnit unit)
Set the deployment unit |
void |
setMetaDataPath(String path)
|
void |
setMutableScope(org.jboss.metadata.spi.scope.ScopeKey mutableScope)
Set the mutable scope |
void |
setParent(DeploymentContext parent)
Set the parent |
void |
setPredeterminedManagedObjects(org.jboss.deployers.spi.attachments.Attachments objects)
|
void |
setProblem(Throwable problem)
Set the problem for this context |
void |
setRelativeOrder(int relativeOrder)
Set the relative order |
void |
setScope(org.jboss.metadata.spi.scope.ScopeKey scope)
Set the scope |
void |
setState(org.jboss.deployers.spi.DeploymentState state)
Set the deployment state |
String |
toString()
|
void |
visit(DeploymentContextVisitor visitor)
Visit the context and the children |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.logging.Logger log
| Constructor Detail |
|---|
public ComponentDeploymentContext()
public ComponentDeploymentContext(String name,
DeploymentContext parent)
name - the nameparent - the parent
IllegalArgumentException - if the name or parent is null| Method Detail |
|---|
public String getName()
DeploymentContext
getName in interface DeploymentContextpublic Set<Object> getControllerContextNames()
DeploymentContext
getControllerContextNames in interface DeploymentContextpublic void addControllerContextName(Object name)
DeploymentContext
addControllerContextName in interface DeploymentContextname - the controller context namepublic void removeControllerContextName(Object name)
DeploymentContext
removeControllerContextName in interface DeploymentContextname - the controller context namepublic String getSimpleName()
DeploymentContext
getSimpleName in interface DeploymentContextpublic String getRelativePath()
DeploymentContext
getRelativePath in interface DeploymentContextpublic int getRelativeOrder()
DeploymentContext
getRelativeOrder in interface DeploymentContextpublic void setRelativeOrder(int relativeOrder)
DeploymentContext
setRelativeOrder in interface DeploymentContextrelativeOrder - the relativeOrderpublic Comparator<DeploymentContext> getComparator()
DeploymentContext
getComparator in interface DeploymentContextpublic void setComparator(Comparator<DeploymentContext> comparator)
DeploymentContext
setComparator in interface DeploymentContextcomparator - the comparator.public Set<String> getTypes()
DeploymentContext
getTypes in interface DeploymentContextpublic org.jboss.metadata.spi.scope.ScopeKey getScope()
DeploymentContext
getScope in interface DeploymentContextpublic void setScope(org.jboss.metadata.spi.scope.ScopeKey scope)
DeploymentContext
setScope in interface DeploymentContextscope - the scope keypublic org.jboss.metadata.spi.scope.ScopeKey getMutableScope()
DeploymentContext
getMutableScope in interface DeploymentContextpublic void setMutableScope(org.jboss.metadata.spi.scope.ScopeKey mutableScope)
DeploymentContext
setMutableScope in interface DeploymentContextmutableScope - the mutable scope keypublic org.jboss.metadata.spi.MetaData getMetaData()
DeploymentContext
getMetaData in interface DeploymentContextpublic org.jboss.metadata.spi.MutableMetaData getMutableMetaData()
DeploymentContext
getMutableMetaData in interface DeploymentContextpublic org.jboss.deployers.spi.DeploymentState getState()
DeploymentContext
getState in interface DeploymentContextpublic void setState(org.jboss.deployers.spi.DeploymentState state)
DeploymentContext
setState in interface DeploymentContextstate - the statepublic DeploymentUnit getDeploymentUnit()
DeploymentContext
getDeploymentUnit in interface DeploymentContextpublic void setDeploymentUnit(DeploymentUnit unit)
DeploymentContext
setDeploymentUnit in interface DeploymentContextunit - the deployment unitpublic void setMetaDataPath(String path)
public ClassLoader getClassLoader()
DeploymentContext
getClassLoader in interface DeploymentContextpublic void setClassLoader(ClassLoader classLoader)
DeploymentContext
setClassLoader in interface DeploymentContextclassLoader - the new classloader
public boolean createClassLoader(ClassLoaderFactory factory)
throws org.jboss.deployers.spi.DeploymentException
DeploymentContext
createClassLoader in interface DeploymentContextfactory - the factory
org.jboss.deployers.spi.DeploymentException - for any errorpublic void removeClassLoader()
DeploymentContext
removeClassLoader in interface DeploymentContextpublic void removeClassLoader(ClassLoaderFactory factory)
DeploymentContext
removeClassLoader in interface DeploymentContextfactory - the original factory used to create the classloaderpublic boolean isTopLevel()
DeploymentContext
isTopLevel in interface DeploymentContextpublic DeploymentContext getTopLevel()
DeploymentContext
getTopLevel in interface DeploymentContextpublic DeploymentContext getParent()
DeploymentContext
getParent in interface DeploymentContextpublic void setParent(DeploymentContext parent)
DeploymentContext
setParent in interface DeploymentContextparent - the parentpublic List<DeploymentContext> getChildren()
DeploymentContext
getChildren in interface DeploymentContextpublic void addChild(DeploymentContext child)
DeploymentContext
addChild in interface DeploymentContextchild - the child to addpublic boolean removeChild(DeploymentContext child)
DeploymentContext
removeChild in interface DeploymentContextchild - the child to remove
public org.jboss.deployers.client.spi.Deployment getDeployment()
DeploymentContext
getDeployment in interface DeploymentContextpublic void setDeployment(org.jboss.deployers.client.spi.Deployment deployment)
DeploymentContext
setDeployment in interface DeploymentContextdeployment - the deploymentpublic boolean isComponent()
DeploymentContext
isComponent in interface DeploymentContextpublic List<DeploymentContext> getComponents()
DeploymentContext
getComponents in interface DeploymentContextpublic void addComponent(DeploymentContext component)
DeploymentContext
addComponent in interface DeploymentContextcomponent - the componnet to addpublic boolean removeComponent(DeploymentContext component)
DeploymentContext
removeComponent in interface DeploymentContextcomponent - the component to remove
public ClassLoader getResourceClassLoader()
DeploymentContext
getResourceClassLoader in interface DeploymentContextpublic DeploymentResourceLoader getResourceLoader()
DeploymentContext
getResourceLoader in interface DeploymentContextpublic org.jboss.dependency.spi.DependencyInfo getDependencyInfo()
DeploymentContext
getDependencyInfo in interface DeploymentContext
public void visit(DeploymentContextVisitor visitor)
throws org.jboss.deployers.spi.DeploymentException
DeploymentContext
visit in interface DeploymentContextvisitor - the visitor
org.jboss.deployers.spi.DeploymentException - for any error in the visitorpublic org.jboss.deployers.spi.attachments.Attachments getPredeterminedManagedObjects()
getPredeterminedManagedObjects in interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachmentspublic void setPredeterminedManagedObjects(org.jboss.deployers.spi.attachments.Attachments objects)
setPredeterminedManagedObjects in interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachmentspublic org.jboss.deployers.spi.attachments.MutableAttachments getTransientManagedObjects()
getTransientManagedObjects in interface org.jboss.deployers.spi.attachments.ManagedObjectAttachmentspublic org.jboss.deployers.spi.attachments.MutableAttachments getTransientAttachments()
getTransientAttachments in interface org.jboss.deployers.spi.attachments.ManagedObjectsWithTransientAttachmentspublic Throwable getProblem()
DeploymentContext
getProblem in interface DeploymentContextpublic void setProblem(Throwable problem)
DeploymentContext
setProblem in interface DeploymentContextproblem - the problempublic void deployed()
DeploymentContext
deployed in interface DeploymentContextpublic boolean isDeployed()
DeploymentContext
isDeployed in interface DeploymentContextpublic void cleanup()
DeploymentContext
cleanup in interface DeploymentContextpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||