org.exoplatform.container
Class StandaloneContainer
java.lang.Object
org.picocontainer.defaults.DefaultPicoContainer
org.exoplatform.container.CachingContainer
org.exoplatform.container.jmx.ManageableContainer
org.exoplatform.container.ExoContainer
org.exoplatform.container.StandaloneContainer
- All Implemented Interfaces:
- Serializable, SessionManagerContainer, org.picocontainer.Disposable, org.picocontainer.MutablePicoContainer, org.picocontainer.PicoContainer, org.picocontainer.Startable
public class StandaloneContainer
- extends ExoContainer
- implements SessionManagerContainer
Created by The eXo Platform SAS .
- Version:
- $Id: StandaloneContainer.java 7168 2006-07-19 07:36:23Z peterit $
Singletone, context independent Exo Container with one configuration
entry point. The configuration is set as follows: - client calls
setConfigurationURL() or setConfigurationPath method BEFORE
getInstance() - otherwise container in instantiation time looks for
configuration.xml file in the "home" directory. the home directory
it is AS server home in a case of AS env or just current directory
(from where JVM is started) for standalone. See
- Author:
- Gennady Azarenkov
- 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 |
getInstance
public static StandaloneContainer getInstance()
throws Exception
- Shortcut for getInstance(null, null)
- Returns:
- the StandaloneContainer instance
- Throws:
Exception
getInstance
public static StandaloneContainer getInstance(ClassLoader configClassLoader)
throws Exception
- Shortcut for getInstance(configClassLoader, null)
- Returns:
- the StandaloneContainer instance
- Throws:
Exception
getInstance
public static StandaloneContainer getInstance(Object[][] components)
throws Exception
- Shortcut for getInstance(null, components)
- Returns:
- the StandaloneContainer instance
- Throws:
Exception
getInstance
public static StandaloneContainer getInstance(ClassLoader configClassLoader,
Object[][] components)
throws Exception
- A way to inject externally instantiated objects to container before it
starts Object[][] components - an array of components in form: {{"name1",
component1}, {"name2", component2}, ...}
- Parameters:
configClassLoader - components -
- Returns:
- the StandaloneContainer instance
- Throws:
Exception
registerArray
protected void registerArray(Object[][] components)
addConfigurationURL
public static void addConfigurationURL(String url)
throws MalformedURLException
- Throws:
MalformedURLException
setConfigurationURL
public static void setConfigurationURL(String url)
throws MalformedURLException
- Throws:
MalformedURLException
addConfigurationPath
public static void addConfigurationPath(String path)
throws MalformedURLException
- Throws:
MalformedURLException
setConfigurationPath
public static void setConfigurationPath(String path)
throws MalformedURLException
- Throws:
MalformedURLException
createSessionContainer
public SessionContainer createSessionContainer(String id)
createSessionContainer
public SessionContainer createSessionContainer(String id,
String owner)
- Specified by:
createSessionContainer in interface SessionManagerContainer
getLiveSessions
public List<SessionContainer> getLiveSessions()
- Specified by:
getLiveSessions in interface SessionManagerContainer
removeSessionContainer
public void removeSessionContainer(String sessionID)
- Specified by:
removeSessionContainer in interface SessionManagerContainer
getConfigurationURL
public URL getConfigurationURL()
- Returns:
- configurationURL
stop
public void stop()
- Specified by:
stop in interface org.picocontainer.Startable- Overrides:
stop in class org.picocontainer.defaults.DefaultPicoContainer
getSessionManager
public SessionManager getSessionManager()
- Specified by:
getSessionManager in interface SessionManagerContainer
Copyright © 2009 eXo Platform SAS. All Rights Reserved.