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 |
addListener(org.exoplatform.container.TopExoContainerListener listener)
Adds a new listener
|
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)
Retrieve a component instance registered with a specific key.
|
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() |
addComponentLifecylePlugin, addContainerLifecylePlugin, canBeDisposed, canBeInitialized, canBeStarted, canBeStopped, createComponent, dispose, getComponentAdapter, getComponentAdapter, getComponentAdapter, getComponentAdapterOfType, getComponentAdapterOfType, getComponentInstance, getComponentInstance, getComponentInstanceOfType, getComponentInstanceOfType, getConfiguration, getContext, getContextManager, getExternalComponentPluginsUnused, getParent, getProfiles, getRegisteredComponentNames, hasProfile, initContainerInternal, initialize, isContextManagerLoaded, registerComponentImplementation, registerComponentInstance, start, start, unregisterAllComponents
accept, createComponent, getComponentAdapters, getComponentAdaptersOfType, getComponentInstancesOfType, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, registerComponentImplementation, registerComponentInstance, unregisterComponent
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.exoplatform.container.spi.ContainerException
getComponentInstance
in class ExoContainer
componentKey
- the key that the component was registered with.null
if no component has been registered for the specified
key.org.exoplatform.container.spi.ContainerException
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 addListener(org.exoplatform.container.TopExoContainerListener listener)
listener
- the listener to addpublic void stop()
org.exoplatform.container.AbstractContainer
stop
in interface org.picocontainer.Startable
stop
in class ExoContainer
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.