|
eXo Kernel :: Container 2.4.13-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.ConcurrentPicoContainer
org.exoplatform.container.mc.MCIntegrationContainer
org.exoplatform.container.CachingContainer
org.exoplatform.container.management.ManageableContainer
org.exoplatform.container.ExoContainer
org.exoplatform.container.StandaloneContainer
public class StandaloneContainer
Created by The eXo Platform SAS
Singleton, 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
ConcurrentPicoContainer.ContainerVisitor |
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.container.ExoContainer |
|---|
context, parent, stopping |
| Method Summary | |
|---|---|
static void |
addConfigurationPath(String path)
Add configuration path. |
static void |
addConfigurationURL(String url)
Add configuration URL. |
SessionContainer |
createSessionContainer(String id)
Ccreate SessionContainer. |
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<SessionContainer> |
getLiveSessions()
|
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. |
| Methods inherited from class org.exoplatform.container.ExoContainer |
|---|
addComponentLifecylePlugin, addContainerLifecylePlugin, createComponent, createComponent, destroyContainer, dispose, getConfiguration, getContext, getProfiles, hasProfile, initContainer, start, start, startContainer, stopContainer, unregisterAllComponents |
| Methods inherited from class org.exoplatform.container.management.ManageableContainer |
|---|
getManagementContext, getMBeanServer, getRegisteredComponentNames, getScopingObjectName, registerComponentInstance, unregisterComponent |
| Methods inherited from class org.exoplatform.container.mc.MCIntegrationContainer |
|---|
hasMCKernel |
| Methods inherited from class org.exoplatform.container.ConcurrentPicoContainer |
|---|
accept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, getComponentAdapter, getComponentAdapters, getComponentInstances, getParent, makeChildContainer, removeChildContainer, removeComponentFromCtx, unregisterComponentByInstance, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static StandaloneContainer getInstance()
throws Exception
Exception - if error occurs
public static StandaloneContainer getInstance(ClassLoader configClassLoader)
throws Exception
configClassLoader - ClassLoader
Exception - if error occurs
public static StandaloneContainer getInstance(Object[][] components)
throws Exception
components - Object[][]
Exception - if error occurs
public 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 file
MalformedURLException - if path is wrong
public static void setConfigurationURL(String url)
throws MalformedURLException
url - URL of location to configuration file
MalformedURLException - if path is wrong
public static void addConfigurationPath(String path)
throws MalformedURLException
path - path to configuration file
MalformedURLException - if path is wrong
public static void setConfigurationPath(String path)
throws MalformedURLException
path - path to configuration file
MalformedURLException - if path is wrongpublic SessionContainer createSessionContainer(String id)
id - String
public SessionContainer createSessionContainer(String id,
String owner)
createSessionContainer in interface SessionManagerContainerpublic List<SessionContainer> getLiveSessions()
getLiveSessions in interface SessionManagerContainerpublic void removeSessionContainer(String sessionID)
removeSessionContainer in interface 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 SessionManager getSessionManager()
getSessionManager in interface SessionManagerContainer
|
eXo Kernel :: Container 2.4.13-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||