public class RootContainer extends ExoContainer implements org.gatein.wci.WebAppListener, org.gatein.wci.authentication.AuthenticationListener
Modifier and Type | Class and Description |
---|---|
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
|
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_TO_BE_INVALIDATED_ATTRIBUTE_NAME
The name of the attribute used to mark a session as to be invalidated
|
context, parent, stopping
Constructor and Description |
---|
RootContainer() |
Modifier and Type | Method and Description |
---|---|
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.
|
org.exoplatform.container.monitor.jvm.OperatingSystemInfo |
getOSEnvironment() |
PortalContainer |
getPortalContainer(String name) |
org.exoplatform.container.monitor.jvm.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.
|
addComponentLifecylePlugin, addContainerLifecylePlugin, createComponent, createComponent, destroyContainer, dispose, getConfiguration, getContext, getProfiles, hasProfile, initContainer, start, start, startContainer, stopContainer, unregisterAllComponents
getManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponent
getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstanceOfType, getComponentInstancesOfType, registerComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance
accept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verify
public static final String SESSION_TO_BE_INVALIDATED_ATTRIBUTE_NAME
public org.exoplatform.container.monitor.jvm.OperatingSystemInfo getOSEnvironment()
public boolean isPortalContainerConfigAware()
PortalContainerConfig
true
if we are using the old way to configure the portal containers,
false
otherwisepublic org.exoplatform.container.monitor.jvm.J2EEServerInfo getServerEnvironment()
public Object getComponentInstance(Object componentKey) throws org.picocontainer.PicoException
getComponentInstance
in interface org.picocontainer.PicoContainer
getComponentInstance
in class org.exoplatform.container.CachingContainer
org.picocontainer.PicoException
public 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 synchronouslycontext
- the context of the portal containerpublic void createPortalContainers()
registerPortalContainer
public void onEvent(org.gatein.wci.WebAppEvent event)
onEvent
in interface org.gatein.wci.WebAppListener
public void onEvent(org.gatein.wci.authentication.AuthenticationEvent evt)
onEvent
in interface org.gatein.wci.authentication.AuthenticationListener
public void createPortalContainer(javax.servlet.ServletContext context)
context
- the servlet contextpublic void removePortalContainer(javax.servlet.ServletContext servletContext)
servletContext
- the servlet contextpublic 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 namecontext
- the servlet context from which the task comes fromtask
- the task to addpublic 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()
org.exoplatform.container.ConcurrentPicoContainer
Startable
will be stopped.stop
in interface org.picocontainer.Startable
stop
in class ExoContainer
ConcurrentPicoContainer.makeChildContainer()
,
ConcurrentPicoContainer.addChildContainer(PicoContainer)
,
ConcurrentPicoContainer.removeChildContainer(PicoContainer)
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.