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, unregisterAllComponents
getManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponent
getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstance, 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 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.SessionManagerContainer
public List<org.exoplatform.container.SessionContainer> getLiveSessions()
getLiveSessions
in interface org.exoplatform.container.SessionManagerContainer
public void removeSessionContainer(String sessionID)
removeSessionContainer
in interface org.exoplatform.container.SessionManagerContainer
public URL getConfigurationURL()
public String getConfigurationXML()
public void stop()
Startable
will be stopped.stop
in interface org.picocontainer.Startable
stop
in class ExoContainer
ConcurrentPicoContainer.makeChildContainer()
,
ConcurrentPicoContainer.addChildContainer(PicoContainer)
,
ConcurrentPicoContainer.removeChildContainer(PicoContainer)
public org.exoplatform.container.SessionManager getSessionManager()
getSessionManager
in interface org.exoplatform.container.SessionManagerContainer
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.