|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl
org.jboss.deployers.spi.attachments.helpers.ManagedObjectAttachmentsImpl
org.jboss.deployers.spi.attachments.helpers.ManagedObjectsWithTransientAttachmentsImpl
org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext
public class AbstractDeploymentContext
AbstractDeploymentContext.
| Constructor Summary | |
|---|---|
AbstractDeploymentContext()
For serialization |
|
AbstractDeploymentContext(String name,
String relativePath)
Create a new AbstractDeploymentContext. |
|
AbstractDeploymentContext(String name,
String simpleName,
String relativePath)
Create a new AbstractDeploymentContext. |
|
| 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 |
static void |
cleanupRepository(DeploymentContext deploymentContext)
Cleanup the repository |
boolean |
createClassLoader(ClassLoaderFactory factory)
Create a classloader |
protected DeploymentUnit |
createDeploymentUnit()
Create a deployment unit |
void |
deployed()
Touch the context to say it is deployed |
List<ObjectName> |
getChildNames()
The children |
List<DeploymentContext> |
getChildren()
The children |
ClassLoader |
getClassLoader()
Gets the classloader for this deployment unit |
ObjectName |
getClassLoaderName()
Gets the classloader for this deployment unit |
Comparator<DeploymentContext> |
getComparator()
Get the comparator. |
List<ObjectName> |
getComponentNames()
The components |
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 |
static org.jboss.metadata.spi.MetaData |
getMetaData(DeploymentContext deploymentContext)
Get the metadata for a deployment context |
org.jboss.metadata.spi.MutableMetaData |
getMutableMetaData()
Get the mutable metadata for this deployment context |
static org.jboss.metadata.spi.loader.MutableMetaDataLoader |
getMutableMetaData(DeploymentContext deploymentContext)
Get the mutable metadata for a deployment context |
org.jboss.metadata.spi.scope.ScopeKey |
getMutableScope()
Get the mutable scope |
String |
getName()
Get the deployment name |
ObjectName |
getObjectName()
Get the object name |
DeploymentContext |
getParent()
The parent |
ObjectName |
getParentName()
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" |
static org.jboss.metadata.spi.repository.MutableMetaDataRepository |
getRepository(DeploymentContext deploymentContext)
Get the repository for a deployment context |
ClassLoader |
getResourceClassLoader()
Get a resource classloader |
DeploymentResourceLoader |
getResourceLoader()
Get a resource loader |
org.jboss.metadata.spi.scope.ScopeKey |
getScope()
Get the scope |
static ScopeBuilder |
getScopeBuilder(DeploymentContext deploymentContext)
Get the scope builder for a deployment context |
String |
getSimpleName()
Get the simple vfs name of the deployment unit. |
DeploymentState |
getState()
Get the deployment state |
DeploymentContext |
getTopLevel()
Get the top level deployment |
ObjectName |
getTopLevelName()
Get the top level deployment |
MutableAttachments |
getTransientAttachments()
Get the transient attachments |
MutableAttachments |
getTransientManagedObjects()
Get the transient managed objects |
boolean |
isComponent()
Whether this is a component |
boolean |
isDeployed()
Whether the deployment was processed |
boolean |
isTopLevel()
Whether this is a top level deployment |
String |
listAttachments(boolean detail)
List the attachments as an html table |
protected static void |
listAttachments(StringBuilder builder,
Attachments attachments,
boolean detail,
Set<String> processed)
|
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
readExternal(ObjectInput in)
|
protected void |
registerMBeans(DeploymentContext context,
boolean registerContext,
boolean registerSubDeployments)
Register mbeans |
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 mutableScope)
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 scope)
Set the scope |
void |
setState(DeploymentState state)
Set the deployment state |
String |
toString()
|
protected void |
unregisterMBeans(DeploymentContext context,
boolean unregisterContext,
boolean unregisterSubDeployments)
Unregister mbeans |
void |
visit(DeploymentContextVisitor visitor)
Visit the context and the children |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl |
|---|
getPredeterminedManagedObjects, setPredeterminedManagedObjects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments |
|---|
getPredeterminedManagedObjects, setPredeterminedManagedObjects |
| Constructor Detail |
|---|
public AbstractDeploymentContext()
public AbstractDeploymentContext(String name,
String relativePath)
name - the namerelativePath - the relative path to the top of the deployment
IllegalArgumentException - if the name is null
public AbstractDeploymentContext(String name,
String simpleName,
String relativePath)
name - the namesimpleName - the simple namerelativePath - the relative path to the top of the deployment
IllegalArgumentException - if the name is null| Method Detail |
|---|
public static ScopeBuilder getScopeBuilder(DeploymentContext deploymentContext)
deploymentContext - the deployment context
public static org.jboss.metadata.spi.repository.MutableMetaDataRepository getRepository(DeploymentContext deploymentContext)
deploymentContext - the deployment context
public static void cleanupRepository(DeploymentContext deploymentContext)
deploymentContext - the deployment contextpublic static org.jboss.metadata.spi.MetaData getMetaData(DeploymentContext deploymentContext)
deploymentContext - the deployment context
public static org.jboss.metadata.spi.loader.MutableMetaDataLoader getMutableMetaData(DeploymentContext deploymentContext)
deploymentContext - the deployment context
public String getName()
DeploymentContext
getName in interface DeploymentContextgetName in interface DeploymentMBeanpublic ObjectName getObjectName()
DeploymentMBean
getObjectName in interface DeploymentMBeanpublic Set<Object> getControllerContextNames()
DeploymentContext
getControllerContextNames in interface DeploymentContextgetControllerContextNames in interface DeploymentMBeanpublic 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 DeploymentContextgetSimpleName in interface DeploymentMBeanpublic String getRelativePath()
DeploymentContext
getRelativePath in interface DeploymentContextgetRelativePath in interface DeploymentMBeanpublic int getRelativeOrder()
DeploymentContext
getRelativeOrder in interface DeploymentContextgetRelativeOrder in interface DeploymentMBeanpublic void setRelativeOrder(int relativeOrder)
DeploymentContext
setRelativeOrder in interface DeploymentContextrelativeOrder - the relativeOrderpublic Comparator<DeploymentContext> getComparator()
DeploymentContext
getComparator in interface DeploymentContextgetComparator in interface DeploymentMBeanpublic void setComparator(Comparator<DeploymentContext> comparator)
DeploymentContext
setComparator in interface DeploymentContextcomparator - the comparator.public org.jboss.metadata.spi.scope.ScopeKey getScope()
DeploymentContext
getScope in interface DeploymentContextgetScope in interface DeploymentMBeanpublic 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 DeploymentContextgetMutableScope in interface DeploymentMBeanpublic 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 DeploymentState getState()
DeploymentContext
getState in interface DeploymentContextgetState in interface DeploymentMBeanpublic void setState(DeploymentState state)
DeploymentContext
setState in interface DeploymentContextstate - the statepublic Deployment getDeployment()
DeploymentContext
getDeployment in interface DeploymentContextpublic void setDeployment(Deployment deployment)
DeploymentContext
setDeployment in interface DeploymentContextdeployment - the deploymentpublic DeploymentUnit getDeploymentUnit()
DeploymentContext
getDeploymentUnit in interface DeploymentContextpublic void setDeploymentUnit(DeploymentUnit unit)
DeploymentContext
setDeploymentUnit in interface DeploymentContextunit - the deployment unitpublic ClassLoader getClassLoader()
DeploymentContext
getClassLoader in interface DeploymentContextpublic ObjectName getClassLoaderName()
DeploymentMBean
getClassLoaderName in interface DeploymentMBeanpublic void setClassLoader(ClassLoader classLoader)
DeploymentContext
setClassLoader in interface DeploymentContextclassLoader - the new classloader
public boolean createClassLoader(ClassLoaderFactory factory)
throws DeploymentException
DeploymentContext
createClassLoader in interface DeploymentContextfactory - the factory
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 DeploymentContextisTopLevel in interface DeploymentMBeanpublic DeploymentContext getTopLevel()
DeploymentContext
getTopLevel in interface DeploymentContextpublic ObjectName getTopLevelName()
DeploymentMBean
getTopLevelName in interface DeploymentMBeanpublic DeploymentContext getParent()
DeploymentContext
getParent in interface DeploymentContextpublic ObjectName getParentName()
DeploymentMBean
getParentName in interface DeploymentMBeanpublic void setParent(DeploymentContext parent)
DeploymentContext
setParent in interface DeploymentContextparent - the parentpublic List<DeploymentContext> getChildren()
DeploymentContext
getChildren in interface DeploymentContextpublic List<ObjectName> getChildNames()
DeploymentMBean
getChildNames in interface DeploymentMBeanpublic 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 boolean isComponent()
DeploymentContext
isComponent in interface DeploymentContextisComponent in interface DeploymentMBeanpublic List<DeploymentContext> getComponents()
DeploymentContext
getComponents in interface DeploymentContextpublic List<ObjectName> getComponentNames()
DeploymentMBean
getComponentNames in interface DeploymentMBeanpublic 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 Object getControllerContextName()
DeploymentContext
getControllerContextName in interface DeploymentContextpublic void setRequiredStage(DeploymentStage stage)
DeploymentContext
setRequiredStage in interface DeploymentContextstage - the required stagepublic org.jboss.dependency.spi.DependencyInfo getDependencyInfo()
DeploymentContext
getDependencyInfo in interface DeploymentContextgetDependencyInfo in interface DeploymentMBeanpublic MutableAttachments getTransientAttachments()
ManagedObjectsWithTransientAttachments
getTransientAttachments in interface ManagedObjectsWithTransientAttachmentsgetTransientAttachments in class ManagedObjectsWithTransientAttachmentsImplpublic MutableAttachments getTransientManagedObjects()
ManagedObjectAttachments
getTransientManagedObjects in interface ManagedObjectAttachmentsgetTransientManagedObjects in class ManagedObjectAttachmentsImplpublic String listAttachments(boolean detail)
AbstractDeploymentContextMBean
listAttachments in interface AbstractDeploymentContextMBeandetail - whether to show the attachment
protected static void listAttachments(StringBuilder builder,
Attachments attachments,
boolean detail,
Set<String> processed)
public void visit(DeploymentContextVisitor visitor)
throws DeploymentException
DeploymentContext
visit in interface DeploymentContextvisitor - the visitor
DeploymentException - for any error in the visitorpublic Throwable getProblem()
DeploymentContext
getProblem in interface DeploymentContextgetProblem in interface DeploymentMBeanpublic void setProblem(Throwable problem)
DeploymentContext
setProblem in interface DeploymentContextproblem - the problempublic boolean isDeployed()
DeploymentContext
isDeployed in interface DeploymentContextisDeployed in interface DeploymentMBeanpublic void deployed()
DeploymentContext
deployed in interface DeploymentContextpublic void cleanup()
DeploymentContext
cleanup in interface DeploymentContext
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistration
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistration
protected void registerMBeans(DeploymentContext context,
boolean registerContext,
boolean registerSubDeployments)
context - the contextregisterContext - whether to register the context or just its children and componentsregisterSubDeployments - whether to register subdeployments
protected void unregisterMBeans(DeploymentContext context,
boolean unregisterContext,
boolean unregisterSubDeployments)
context - the contextunregisterContext - whether to unregister the context or just its children and componentsunregisterSubDeployments - whether to unregister subdeploymentspublic String toString()
toString in class Objectprotected DeploymentUnit createDeploymentUnit()
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class ManagedObjectsWithTransientAttachmentsImplIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class ManagedObjectsWithTransientAttachmentsImplout - the output
IOException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||