|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.AbstractContainer
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.
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.container.ExoContainer |
|---|
context, parent, stopping |
| Fields inherited from class org.exoplatform.container.AbstractContainer |
|---|
delegate |
| Method Summary | |
|---|---|
static void |
addConfigurationPath(String path)
Add configuration path. |
static void |
addConfigurationURL(String url)
Add configuration URL. |
void |
addListener(org.exoplatform.container.TopExoContainerListener listener)
Adds a new listener |
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). |
protected void |
initContainerInternal()
|
protected void |
registerArray(Object[][] components)
|
static void |
setConfigurationPath(String path)
Set configuration path. |
static void |
setConfigurationURL(String url)
Set configuration URL. |
void |
stop()
Stop this component. |
| Methods inherited from class org.exoplatform.container.AbstractContainer |
|---|
accept, createComponent, getComponentAdapters, getComponentAdaptersOfType, getComponentInstancesOfType, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, registerComponentImplementation, registerComponentInstance, unregisterComponent |
| 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 initContainerInternal()
initContainerInternal in class ExoContainerprotected 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 URL getConfigurationURL()
public String getConfigurationXML()
public void stop()
Disposable if you need a single call at the definite end of the lifecycle.
stop in interface Startablestop in class ExoContainerpublic void addListener(org.exoplatform.container.TopExoContainerListener listener)
listener - the listener to add
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||