public class ExoContainer
extends org.exoplatform.container.management.ManageableContainer
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.container.ExoContainerContext |
context |
protected static org.exoplatform.services.log.Log |
LOG |
protected org.picocontainer.PicoContainer |
parent |
protected AtomicBoolean |
stopping |
| Constructor and Description |
|---|
ExoContainer() |
ExoContainer(org.picocontainer.defaults.ComponentAdapterFactory factory,
org.picocontainer.PicoContainer parent) |
ExoContainer(org.picocontainer.PicoContainer parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentLifecylePlugin(org.exoplatform.container.component.ComponentLifecyclePlugin plugin) |
void |
addContainerLifecylePlugin(org.exoplatform.container.ContainerLifecyclePlugin plugin) |
<T> T |
createComponent(Class<T> clazz) |
<T> T |
createComponent(Class<T> clazz,
org.exoplatform.container.xml.InitParams params) |
void |
destroyContainer()
Deprecated.
|
void |
dispose()
Dispose the components of this PicoContainer and all its logical child containers.
|
protected org.exoplatform.container.xml.Configuration |
getConfiguration()
Gets the
ConfigurationManager from the given ExoContainer if it exists,
then returns the nested Configuration otherwise it returns null |
org.exoplatform.container.ExoContainerContext |
getContext() |
static Set<String> |
getProfiles()
Returns an unmodifiable set of profiles defined by the value returned by invoking
PropertyManager.getProperty(String) with the PropertyManager.RUNTIME_PROFILES
property. |
static boolean |
hasProfile(String profileName)
Indicates whether or not a given profile exists
|
void |
initContainer()
Deprecated.
|
void |
start()
Start the components of this PicoContainer and all its logical child containers.
|
void |
start(boolean init)
Starts the container
|
void |
startContainer()
Deprecated.
|
void |
stop()
Stop the components of this PicoContainer and all its logical child containers.
|
void |
stopContainer()
Deprecated.
|
protected void |
unregisterAllComponents()
Unregister all components from container to avoid keeping instances in memory.
|
getManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponentgetComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, registerComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstanceaccept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verifyprotected final AtomicBoolean stopping
protected static final org.exoplatform.services.log.Log LOG
protected org.exoplatform.container.ExoContainerContext context
protected org.picocontainer.PicoContainer parent
public ExoContainer()
public ExoContainer(org.picocontainer.PicoContainer parent)
public ExoContainer(org.picocontainer.defaults.ComponentAdapterFactory factory,
org.picocontainer.PicoContainer parent)
public static Set<String> getProfiles()
PropertyManager.getProperty(String) with the PropertyManager.RUNTIME_PROFILES
property.public static boolean hasProfile(String profileName)
profileName - the name of the profile to checktrue if the profile exists, false otherwise.public org.exoplatform.container.ExoContainerContext getContext()
@Deprecated public void initContainer() throws Exception
Exceptionpublic void dispose()
org.exoplatform.container.ConcurrentPicoContainerDisposable will be disposed.dispose in interface org.picocontainer.Disposabledispose in class org.exoplatform.container.ConcurrentPicoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)public void start(boolean init)
init - indicates if the container must be initialized firstpublic void start()
org.exoplatform.container.ConcurrentPicoContainerStartable will be started.start in interface org.picocontainer.Startablestart in class org.exoplatform.container.ConcurrentPicoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)public void stop()
org.exoplatform.container.ConcurrentPicoContainerStartable will be stopped.stop in interface org.picocontainer.Startablestop in class org.exoplatform.container.management.ManageableContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)@Deprecated public void startContainer() throws Exception
Exception@Deprecated public void stopContainer() throws Exception
Exception@Deprecated public void destroyContainer() throws Exception
Exceptionpublic void addComponentLifecylePlugin(org.exoplatform.container.component.ComponentLifecyclePlugin plugin)
public void addContainerLifecylePlugin(org.exoplatform.container.ContainerLifecyclePlugin plugin)
public <T> T createComponent(Class<T> clazz, org.exoplatform.container.xml.InitParams params) throws Exception
Exceptionprotected org.exoplatform.container.xml.Configuration getConfiguration()
ConfigurationManager from the given ExoContainer if it exists,
then returns the nested Configuration otherwise it returns nullprotected void unregisterAllComponents()
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.