|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.AbstractContainer
org.exoplatform.container.AbstractInterceptor
org.exoplatform.container.management.ManageableContainer
public class ManageableContainer
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.container.AbstractInterceptor |
|---|
holder, parent |
| Fields inherited from class org.exoplatform.container.AbstractContainer |
|---|
delegate |
| Constructor Summary | |
|---|---|
ManageableContainer()
|
|
ManageableContainer(ExoContainer holder,
ExoContainer parent)
|
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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. |
|
| Methods inherited from class org.exoplatform.container.AbstractInterceptor |
|---|
setHolder, setSuccessor |
| Methods inherited from class org.exoplatform.container.AbstractContainer |
|---|
accept, createComponent, dispose, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getSuccessor, initialize, registerComponentImplementation, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.container.spi.Container |
|---|
accept, createComponent, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getSuccessor, initialize, registerComponentImplementation |
| Methods inherited from interface org.picocontainer.Startable |
|---|
start |
| Methods inherited from interface org.picocontainer.Disposable |
|---|
dispose |
| Constructor Detail |
|---|
public ManageableContainer()
public ManageableContainer(ExoContainer holder,
ExoContainer parent)
| Method Detail |
|---|
public void setParent(ExoContainer parent)
setParent in interface InterceptorsetParent in class AbstractInterceptorparent - the parent containerpublic ManagementContext getManagementContext()
ManagementContext
getManagementContext in interface ContainergetManagementContext in class AbstractContainerpublic final MBeanServer getMBeanServer()
MBeanServer this method is needed for backward compatibility
getMBeanServer in interface ContainergetMBeanServer in class AbstractContainerpublic ObjectName getScopingObjectName()
getScopingObjectName in interface ContainergetScopingObjectName in class AbstractContainer
public <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 AbstractInterceptor
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||