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, unregisterComponent
getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, registerComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance
accept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verify
protected 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
Exception
public void dispose()
org.exoplatform.container.ConcurrentPicoContainer
Disposable
will be disposed.dispose
in interface org.picocontainer.Disposable
dispose
in class org.exoplatform.container.ConcurrentPicoContainer
ConcurrentPicoContainer.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.ConcurrentPicoContainer
Startable
will be started.start
in interface org.picocontainer.Startable
start
in class org.exoplatform.container.ConcurrentPicoContainer
ConcurrentPicoContainer.makeChildContainer()
,
ConcurrentPicoContainer.addChildContainer(PicoContainer)
,
ConcurrentPicoContainer.removeChildContainer(PicoContainer)
public void stop()
org.exoplatform.container.ConcurrentPicoContainer
Startable
will be stopped.stop
in interface org.picocontainer.Startable
stop
in class org.exoplatform.container.management.ManageableContainer
ConcurrentPicoContainer.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
Exception
public 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
Exception
protected org.exoplatform.container.xml.Configuration getConfiguration()
ConfigurationManager
from the given ExoContainer
if it exists,
then returns the nested Configuration
otherwise it returns null
protected void unregisterAllComponents()
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.