org.exoplatform.container
Class RootContainer
java.lang.Object
org.picocontainer.defaults.DefaultPicoContainer
org.exoplatform.container.CachingContainer
org.exoplatform.container.jmx.ManageableContainer
org.exoplatform.container.ExoContainer
org.exoplatform.container.RootContainer
- All Implemented Interfaces:
- java.io.Serializable, org.picocontainer.Disposable, org.picocontainer.MutablePicoContainer, org.picocontainer.PicoContainer, org.picocontainer.Startable
public class RootContainer
- extends ExoContainer
Created by The eXo Platform SAS Author : Tuan Nguyen
tuan08@users.sourceforge.net Date: Jul 21, 2004 Time: 12:15:28 AM
- See Also:
- Serialized Form
| Methods inherited from class org.exoplatform.container.CachingContainer |
addChildContainer, getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance, removeChildContainer, unregisterComponent |
| Methods inherited from class org.picocontainer.defaults.DefaultPicoContainer |
accept, dispose, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, start, unregisterComponentByInstance, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootContainer
public RootContainer()
getOSEnvironment
public OperatingSystemInfo getOSEnvironment()
getServerEnvironment
public J2EEServerInfo getServerEnvironment()
getPortalContainer
public PortalContainer getPortalContainer(java.lang.String name)
createPortalContainer
public PortalContainer createPortalContainer(javax.servlet.ServletContext context)
removePortalContainer
public void removePortalContainer(javax.servlet.ServletContext servletContext)
getComponent
public static java.lang.Object getComponent(java.lang.Class key)
getInstance
public static RootContainer getInstance()
- Get the unique instance of the root container per VM. The implementation relies on the double
checked locking pattern to guarantee that only one instance will be initialized. See
- Returns:
- the root container singleton
setInstance
public static void setInstance(RootContainer rcontainer)
stop
public void stop()
- Specified by:
stop in interface org.picocontainer.Startable- Overrides:
stop in class org.picocontainer.defaults.DefaultPicoContainer
Copyright © 2010 eXo Platform SAS. All Rights Reserved.