|
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
org.exoplatform.container.RootContainer
public class RootContainer
Created by The eXo Platform SAS
A base container which plays an important role during the startup. However,
it is recommended that it should not be used directly.
| Nested Class Summary | |
|---|---|
static interface |
RootContainer.PortalContainerInitTask
This interface is used to define a task that needs to be launched at a given state during the initialization of a portal container |
static class |
RootContainer.PortalContainerPostCreateTask
This class is used to define a task that needs to be launched after creating a portal container Those type of tasks must be launched after all the "post-init" tasks. |
static class |
RootContainer.PortalContainerPostInitTask
This class is used to define a task that needs to be launched after the initialization of a portal container |
static class |
RootContainer.PortalContainerPreInitTask
This class is used to define a task that needs to be launched before the initialization of a portal container |
| Nested classes/interfaces inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
ConcurrentPicoContainer.ContainerVisitor |
| Field Summary | |
|---|---|
static String |
SESSION_TO_BE_INVALIDATED_ATTRIBUTE_NAME
The name of the attribute used to mark a session as to be invalidated |
| Fields inherited from class org.exoplatform.container.ExoContainer |
|---|
context, parent, stopping |
| Fields inherited from class org.exoplatform.container.TenantsContainer |
|---|
tenantsContainerContext |
| Fields inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
componentAdapterFactory |
| Constructor Summary | |
|---|---|
RootContainer()
|
|
| Method Summary | |
|---|---|
void |
addInitTask(javax.servlet.ServletContext context,
RootContainer.PortalContainerInitTask task)
Calls the other method addInitTask with ServletContext.getServletContextName()
as portal container name |
void |
addInitTask(javax.servlet.ServletContext context,
RootContainer.PortalContainerInitTask task,
String portalContainer)
First check if the related portal container has already been initialized. |
void |
createPortalContainer(javax.servlet.ServletContext context)
Create the portal container |
void |
createPortalContainers()
Creates all the portal containers that have been registered thanks to the method registerPortalContainer |
static Object |
getComponent(Class key)
|
Object |
getComponentInstance(Object componentKey)
|
String |
getConfigurationXML()
|
static RootContainer |
getInstance()
Get the unique instance of the root container per VM. |
OperatingSystemInfo |
getOSEnvironment()
|
PortalContainer |
getPortalContainer(String name)
|
J2EEServerInfo |
getServerEnvironment()
|
boolean |
isPortalContainerConfigAware()
Indicates if the current instance is aware of the PortalContainerConfig |
void |
onEvent(org.gatein.wci.authentication.AuthenticationEvent evt)
|
void |
onEvent(org.gatein.wci.WebAppEvent event)
|
void |
registerPortalContainer(javax.servlet.ServletContext context)
Register a new portal container. |
void |
reload()
Makes the RootContainer reloads itself and all the portal containers |
void |
reload(String portalContainerName)
Makes the RootContainer reloads only a given portal container |
void |
removePortalContainer(javax.servlet.ServletContext servletContext)
Removes the portal container |
static void |
setInstance(RootContainer rcontainer)
Set the unique instance of the root container |
void |
stop()
Stop the components of this PicoContainer and all its logical child containers. |
| Methods inherited from class org.exoplatform.container.ExoContainer |
|---|
addComponentLifecylePlugin, addContainerLifecylePlugin, createComponent, createComponent, destroyContainer, dispose, getConfiguration, getContext, getProfiles, hasProfile, initContainer, start, start, startContainer, stopContainer, unregisterAllComponents |
| 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, 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 |
|---|
public static final String SESSION_TO_BE_INVALIDATED_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public RootContainer()
| Method Detail |
|---|
public OperatingSystemInfo getOSEnvironment()
public boolean isPortalContainerConfigAware()
PortalContainerConfig
true if we are using the old way to configure the portal containers,
false otherwisepublic J2EEServerInfo getServerEnvironment()
public Object getComponentInstance(Object componentKey)
throws org.picocontainer.PicoException
getComponentInstance in interface org.picocontainer.PicoContainergetComponentInstance in class TenantsContainerorg.picocontainer.PicoExceptionpublic PortalContainer getPortalContainer(String name)
public void registerPortalContainer(javax.servlet.ServletContext context)
PortalContainerDefinition has
been defined, if so it will create the portal container later otherwise we assume that we
expect the old behavior, thus the portal container will be initialized synchronously
context - the context of the portal containerpublic void createPortalContainers()
registerPortalContainer
public void onEvent(org.gatein.wci.WebAppEvent event)
onEvent in interface org.gatein.wci.WebAppListenerpublic void onEvent(org.gatein.wci.authentication.AuthenticationEvent evt)
onEvent in interface org.gatein.wci.authentication.AuthenticationListenerpublic void createPortalContainer(javax.servlet.ServletContext context)
context - the servlet contextpublic void removePortalContainer(javax.servlet.ServletContext servletContext)
servletContext - the servlet contextpublic static Object getComponent(Class key)
public static RootContainer getInstance()
public static void setInstance(RootContainer rcontainer)
rcontainer - the root containerpublic String getConfigurationXML()
public void reload()
public void reload(String portalContainerName)
public void addInitTask(javax.servlet.ServletContext context,
RootContainer.PortalContainerInitTask task)
addInitTask with ServletContext.getServletContextName()
as portal container name
context - the servlet context from which the task comes fromtask - the task to add
public void addInitTask(javax.servlet.ServletContext context,
RootContainer.PortalContainerInitTask task,
String portalContainer)
context - the servlet context from which the task comes fromtask - the task to addportalContainer - the name of the portal container on which the task must be executedpublic void stop()
ConcurrentPicoContainerStartable will be stopped.
stop in interface org.picocontainer.Startablestop in class ExoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)
|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||