public class ManageableContainer extends AbstractInterceptor
holder, parentdelegate| Constructor and Description |
|---|
ManageableContainer() |
ManageableContainer(ExoContainer holder,
ExoContainer parent) |
| Modifier and Type | Method and Description |
|---|---|
ExoContainer |
getHolder() |
String |
getId()
Gives an identifier to the Container, allowing to inject an
Interceptor into the Interceptor
chain. |
ManagementContext |
getManagementContext()
Gives the corresponding
ManagementContext |
MBeanServer |
getMBeanServer()
Provides the
MBeanServer this method is needed for backward compatibility |
ObjectName |
getScopingObjectName()
Gives the ObjectName of the container build from the scoping data
|
<T> ComponentAdapter<T> |
registerComponentInstance(Object componentKey,
T componentInstance)
Register an arbitrary object as a component in the container.
|
void |
setParent(ExoContainer parent)
Sets the parent container
|
void |
stop()
Stop this component.
|
ComponentAdapter<?> |
unregisterComponent(Object componentKey)
Unregister a component by key.
|
setHolder, setSuccessoraccept, createComponent, dispose, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getSuccessor, initialize, registerComponentImplementation, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, createComponent, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getSuccessor, initialize, registerComponentImplementationdisposepublic ManageableContainer()
public ManageableContainer(ExoContainer holder, ExoContainer parent)
public void setParent(ExoContainer parent)
setParent in interface InterceptorsetParent in class AbstractInterceptorparent - the parent containerpublic ManagementContext getManagementContext()
ManagementContextgetManagementContext in interface ContainergetManagementContext in class AbstractContainerpublic final MBeanServer getMBeanServer()
MBeanServer this method is needed for backward compatibilitygetMBeanServer in interface ContainergetMBeanServer in class AbstractContainerpublic ObjectName getScopingObjectName()
getScopingObjectName in interface ContainergetScopingObjectName in class AbstractContainerpublic <T> ComponentAdapter<T> registerComponentInstance(Object componentKey, T componentInstance) throws ContainerException
registerComponentInstance in interface ContainerregisterComponentInstance in class AbstractContainercomponentKey - a key that identifies the component. Must be unique within the container. The type of the
key object has no semantic significance unless explicitly specified in the implementing
container.componentInstance - an arbitrary object.getXXX() methods of the
Container interface can be used to retrieve a reference to the component later on.ContainerException - if registration fails.public ComponentAdapter<?> unregisterComponent(Object componentKey)
unregisterComponent in interface ContainerunregisterComponent in class AbstractContainercomponentKey - key of the component to unregister.public void stop()
Disposable if you need a single call at the definite end of the lifecycle.stop in interface Startablestop in class AbstractContainerpublic ExoContainer getHolder()
public String getId()
Interceptor into the Interceptor
chain.getId in interface InterceptorgetId in class AbstractInterceptorCopyright © 2020 eXo Platform SAS. All Rights Reserved.