public class StandaloneContainer extends ExoContainer
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.
|
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() |
addComponentLifecylePlugin, addContainerLifecylePlugin, canBeDisposed, canBeInitialized, canBeStarted, canBeStopped, createComponent, dispose, getComponentAdapter, getComponentAdapter, getComponentAdapter, getComponentAdapterOfType, getComponentAdapterOfType, getComponentInstance, getComponentInstance, getComponentInstance, getComponentInstanceOfType, getComponentInstanceOfType, getConfiguration, getContext, getContextManager, getExternalComponentPluginsUnused, getParent, getProfiles, getRegisteredComponentNames, hasProfile, initialize, isContextManagerLoaded, registerComponentImplementation, registerComponentInstance, start, start, unregisterAllComponents
accept, createComponent, getComponentAdapters, getComponentAdaptersOfType, getComponentInstancesOfType, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, registerComponentImplementation, registerComponentInstance, unregisterComponent
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 initContainerInternal()
initContainerInternal
in class ExoContainer
protected 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 URL getConfigurationURL()
public String getConfigurationXML()
public void stop()
stop
in interface org.picocontainer.Startable
stop
in class ExoContainer
public void addListener(org.exoplatform.container.TopExoContainerListener listener)
listener
- the listener to addCopyright © 2003–2019 eXo Platform SAS. All rights reserved.