public class StandaloneContainer extends ExoContainer implements org.exoplatform.container.SessionManagerContainer
context, parent, stopping| Modifier and Type | Method and Description |
|---|---|
static void |
addConfigurationPath(String path)
Add configuration path.
|
static void |
addConfigurationURL(String url)
Add configuration URL.
|
org.exoplatform.container.SessionContainer |
createSessionContainer(String id)
Ccreate SessionContainer.
|
org.exoplatform.container.SessionContainer |
createSessionContainer(String id,
String owner) |
URL |
getConfigurationURL()
Get configurationURL.
|
String |
getConfigurationXML() |
static StandaloneContainer |
getInstance()
Shortcut for getInstance(null, null).
|
static StandaloneContainer |
getInstance(ClassLoader configClassLoader)
Shortcut for getInstance(configClassLoader, null).
|
static StandaloneContainer |
getInstance(ClassLoader configClassLoader,
Object[][] components)
A way to inject externally instantiated objects to container before it
starts Object[][] components - an array of components in form: {{"name1",
component1}, {"name2", component2}, ...}.
|
static StandaloneContainer |
getInstance(Object[][] components)
Shortcut for getInstance(null, components).
|
List<org.exoplatform.container.SessionContainer> |
getLiveSessions() |
org.exoplatform.container.SessionManager |
getSessionManager() |
protected void |
registerArray(Object[][] components) |
void |
removeSessionContainer(String sessionID) |
static void |
setConfigurationPath(String path)
Set configuration path.
|
static void |
setConfigurationURL(String url)
Set configuration URL.
|
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, unregisterAllComponentsgetManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponentgetComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, registerComponent, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstanceaccept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verifypublic static StandaloneContainer getInstance() throws Exception
Exception - if error occurspublic static StandaloneContainer getInstance(ClassLoader configClassLoader) throws Exception
configClassLoader - ClassLoaderException - if error occurspublic static StandaloneContainer getInstance(Object[][] components) throws Exception
components - Object[][]Exception - if error occurspublic static StandaloneContainer getInstance(ClassLoader configClassLoader, Object[][] components) throws Exception
configClassLoader - ClassLoadercomponents - Object[][]Exception - if error occursprotected void registerArray(Object[][] components)
public static void addConfigurationURL(String url) throws MalformedURLException
url - URL of location to configuration fileMalformedURLException - if path is wrongpublic static void setConfigurationURL(String url) throws MalformedURLException
url - URL of location to configuration fileMalformedURLException - if path is wrongpublic static void addConfigurationPath(String path) throws MalformedURLException
path - path to configuration fileMalformedURLException - if path is wrongpublic static void setConfigurationPath(String path) throws MalformedURLException
path - path to configuration fileMalformedURLException - if path is wrongpublic org.exoplatform.container.SessionContainer createSessionContainer(String id)
id - Stringpublic org.exoplatform.container.SessionContainer createSessionContainer(String id, String owner)
createSessionContainer in interface org.exoplatform.container.SessionManagerContainerpublic List<org.exoplatform.container.SessionContainer> getLiveSessions()
getLiveSessions in interface org.exoplatform.container.SessionManagerContainerpublic void removeSessionContainer(String sessionID)
removeSessionContainer in interface org.exoplatform.container.SessionManagerContainerpublic URL getConfigurationURL()
public String getConfigurationXML()
public void stop()
Startable will be stopped.stop in interface org.picocontainer.Startablestop in class ExoContainerConcurrentPicoContainer.makeChildContainer(),
ConcurrentPicoContainer.addChildContainer(PicoContainer),
ConcurrentPicoContainer.removeChildContainer(PicoContainer)public org.exoplatform.container.SessionManager getSessionManager()
getSessionManager in interface org.exoplatform.container.SessionManagerContainerCopyright © 2003-2017 eXo Platform SAS. All Rights Reserved.