|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationManager
The ConfigurationManager is the component allowing to access to the configuration of a given
eXo container. We have one instance of ConfigurationManager per eXo container.
All the url provided in String format can use the next prefixes:
| Field Summary | |
|---|---|
static boolean |
LOG_DEBUG
Constant that indicates whether the logger of the configuration must be in debug more or not. |
static String |
LOG_DEBUG_PROPERTY
The name of the system property that indicates whether the logger of the configuration must be in debug more or not. |
| Method Summary | |
|---|---|
void |
addConfiguration(Collection<URL> urls)
Adds a collection URL corresponding to the location of the
configuration files to add |
void |
addConfiguration(String url)
Adds a new location of a configuration file |
void |
addConfiguration(URL url)
Adds a new location of a configuration file |
Component |
getComponent(Class<?> clazz)
Gives the component configuration of a given service |
Component |
getComponent(String service)
Gives the component configuration of a given service |
Collection<Component> |
getComponents()
Gives the configuration of all the registered components |
Configuration |
getConfiguration()
Gives the entire configuration |
InputStream |
getInputStream(String url)
Gives the InputStream of the resource file corresponding to the url provided in
String format |
InputStream |
getInputStream(String url,
String defaultURL)
Gives the InputStream of the resource file corresponding to the url provided in
String format |
URL |
getResource(String url)
Gives the URL of the resource file corresponding to the url provided in
String format |
URL |
getResource(String url,
String defaultURL)
Gives the URL of the resource file corresponding to the url provided in
String format |
URL |
getURL(String uri)
This method is equivalent to getResource(String) |
| Field Detail |
|---|
static final String LOG_DEBUG_PROPERTY
static final boolean LOG_DEBUG
| Method Detail |
|---|
Configuration getConfiguration()
Component getComponent(String service)
service - the FQN of the service for which we want the configurationComponent getComponent(Class<?> clazz)
clazz - the Class of the service for which we want the configurationCollection<Component> getComponents()
void addConfiguration(String url)
throws Exception
url - the url of the configuration to add, that we want to resolve
Exception - if the configuration could not be found
or the url in String format could not be resolvedvoid addConfiguration(Collection<URL> urls)
URL corresponding to the location of the
configuration files to add
urls - the URLs of configuration files to addvoid addConfiguration(URL url)
url - the url of the configuration to add
URL getResource(String url,
String defaultURL)
throws Exception
URL of the resource file corresponding to the url provided in
String format
url - the url to resolvedefaultURL - The default URL to use in case the parameter url is null.
URL representing the String url to resolve
Exception - if the String url could not be resolved
URL getResource(String url)
throws Exception
URL of the resource file corresponding to the url provided in
String format
url - the url to resolve
URL representing the String url to resolve
Exception - if the String url could not be resolved
InputStream getInputStream(String url,
String defaultURL)
throws Exception
InputStream of the resource file corresponding to the url provided in
String format
url - the url to resolvedefaultURL - The default URL to use in case the parameter url is null.
InputStream of the resource file
Exception - if the String url could not be resolved
InputStream getInputStream(String url)
throws Exception
InputStream of the resource file corresponding to the url provided in
String format
url - the url to resolve
InputStream of the resource file
Exception - if the String url could not be resolved
URL getURL(String uri)
throws Exception
getResource(String)
Exception
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||