|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.ConcurrentPicoContainer
org.exoplatform.container.mc.MCIntegrationContainer
org.exoplatform.container.CachingContainer
org.exoplatform.container.TenantsContainer
org.exoplatform.container.management.ManageableContainer
org.exoplatform.container.ExoContainer
public class ExoContainer
Created by The eXo Platform SAS
The Exo Container is an object responsible for loading services/components.
The eXoContainer class is inherited by all the containers, including RootContainer, PortalContainer,
and StandaloneContainer. It itself inherits from a PicoContainer framework which allows eXo to apply
the Inversion of Control (also known as IoC) principles.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
ConcurrentPicoContainer.ContainerVisitor |
| Field Summary | |
|---|---|
protected ExoContainerContext |
context
|
protected static Log |
LOG
|
protected org.picocontainer.PicoContainer |
parent
|
protected AtomicBoolean |
stopping
|
| Fields inherited from class org.exoplatform.container.TenantsContainer |
|---|
tenantsContainerContext |
| Fields inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
componentAdapterFactory |
| Constructor Summary | |
|---|---|
|
ExoContainer()
|
|
ExoContainer(org.picocontainer.defaults.ComponentAdapterFactory factory,
org.picocontainer.PicoContainer parent)
|
|
ExoContainer(org.picocontainer.PicoContainer parent)
|
protected |
ExoContainer(org.picocontainer.PicoContainer parent,
boolean initContext)
|
| Method Summary | ||
|---|---|---|
void |
addComponentLifecylePlugin(ComponentLifecyclePlugin plugin)
|
|
void |
addContainerLifecylePlugin(ContainerLifecyclePlugin plugin)
|
|
|
createComponent(Class<T> clazz)
|
|
|
createComponent(Class<T> clazz,
InitParams params)
|
|
void |
destroyContainer()
Deprecated. |
|
void |
dispose()
Dispose the components of this PicoContainer and all its logical child containers. |
|
protected Configuration |
getConfiguration()
Gets the ConfigurationManager from the given ExoContainer if it exists,
then returns the nested Configuration otherwise it returns null |
|
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. |
|
| Methods inherited from class org.exoplatform.container.management.ManageableContainer |
|---|
getManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponent |
| Methods inherited from class org.exoplatform.container.TenantsContainer |
|---|
getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, registerComponent |
| Methods inherited from class org.exoplatform.container.CachingContainer |
|---|
registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance |
| Methods inherited from class org.exoplatform.container.mc.MCIntegrationContainer |
|---|
hasMCKernel |
| Methods inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
accept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AtomicBoolean stopping
protected static final Log LOG
protected ExoContainerContext context
protected org.picocontainer.PicoContainer parent
| Constructor Detail |
|---|
public ExoContainer()
public ExoContainer(org.picocontainer.PicoContainer parent)
public ExoContainer(org.picocontainer.defaults.ComponentAdapterFactory factory,
org.picocontainer.PicoContainer parent)
protected ExoContainer(org.picocontainer.PicoContainer parent,
boolean initContext)
| Method Detail |
|---|
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 check
true if the profile exists, false otherwise.public ExoContainerContext getContext()
@Deprecated
public void initContainer()
throws Exception
Exceptionpublic void dispose()
ConcurrentPicoContainerDisposable will be disposed.
dispose in interface org.picocontainer.Disposabledispose in class ConcurrentPicoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)public void start(boolean init)
init - indicates if the container must be initialized firstpublic void start()
ConcurrentPicoContainerStartable will be started.
start in interface org.picocontainer.Startablestart in class ConcurrentPicoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)public void stop()
ConcurrentPicoContainerStartable will be stopped.
stop in interface org.picocontainer.Startablestop in class 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(ComponentLifecyclePlugin plugin)
public void addContainerLifecylePlugin(ContainerLifecyclePlugin plugin)
public <T> T createComponent(Class<T> clazz)
throws Exception
Exception
public <T> T createComponent(Class<T> clazz,
InitParams params)
throws Exception
Exceptionprotected Configuration getConfiguration()
ConfigurationManager from the given ExoContainer if it exists,
then returns the nested Configuration otherwise it returns null
protected void unregisterAllComponents()
|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||