|
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.configuration.ConfigurationManagerImpl
public class ConfigurationManagerImpl
Jul 19, 2004
| Field Summary | |
|---|---|
protected Configuration |
configurations_
|
static String |
WAR_CONF_LOCATION
|
| Fields inherited from interface org.exoplatform.container.configuration.ConfigurationManager |
|---|
LOG_DEBUG, LOG_DEBUG_PROPERTY |
| Constructor Summary | |
|---|---|
ConfigurationManagerImpl()
|
|
ConfigurationManagerImpl(ClassLoader loader,
Set<String> profiles)
|
|
ConfigurationManagerImpl(javax.servlet.ServletContext context,
Set<String> profiles)
|
|
ConfigurationManagerImpl(Set<String> profiles)
|
|
ConfigurationManagerImpl(Set<String> profiles,
boolean logEnabled)
|
|
| Method Summary | |
|---|---|
void |
addConfiguration(Collection<URL> urls)
Adds a collection URL corresponding to the location of the
configuration files to add |
void |
addConfiguration(javax.servlet.ServletContext context,
String url)
|
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 |
static URL |
getCurrentURL()
Returns the URL of the current document being unmarshalled or null. |
InputStream |
getInputStream(String uri)
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 uri)
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 url)
This method is equivalent to ConfigurationManager.getResource(String) |
boolean |
isValidateSchema()
|
void |
processRemoveConfiguration()
|
protected String |
removePrefix(String prefix,
String url)
|
void |
setValidateSchema(boolean validateSchema)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WAR_CONF_LOCATION
protected Configuration configurations_
| Constructor Detail |
|---|
public ConfigurationManagerImpl()
public ConfigurationManagerImpl(Set<String> profiles)
public ConfigurationManagerImpl(Set<String> profiles,
boolean logEnabled)
public ConfigurationManagerImpl(javax.servlet.ServletContext context,
Set<String> profiles)
public ConfigurationManagerImpl(ClassLoader loader,
Set<String> profiles)
| Method Detail |
|---|
public static URL getCurrentURL()
public Configuration getConfiguration()
ConfigurationManager
getConfiguration in interface ConfigurationManager
public void addConfiguration(javax.servlet.ServletContext context,
String url)
throws Exception
Exception
public void addConfiguration(String url)
throws Exception
ConfigurationManager
addConfiguration in interface ConfigurationManagerurl - 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 resolvedpublic void addConfiguration(Collection<URL> urls)
ConfigurationManagerURL corresponding to the location of the
configuration files to add
addConfiguration in interface ConfigurationManagerurls - the URLs of configuration files to addpublic void addConfiguration(URL url)
ConfigurationManager
addConfiguration in interface ConfigurationManagerurl - the url of the configuration to addpublic void processRemoveConfiguration()
public Component getComponent(String service)
ConfigurationManager
getComponent in interface ConfigurationManagerservice - the FQN of the service for which we want the configurationpublic Component getComponent(Class<?> clazz)
ConfigurationManager
getComponent in interface ConfigurationManagerclazz - the Class of the service for which we want the configurationpublic Collection<Component> getComponents()
ConfigurationManager
getComponents in interface ConfigurationManagerpublic boolean isValidateSchema()
public void setValidateSchema(boolean validateSchema)
public URL getResource(String url,
String defaultURL)
throws Exception
ConfigurationManagerURL of the resource file corresponding to the url provided in
String format
getResource in interface ConfigurationManagerurl - 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
public URL getResource(String uri)
throws Exception
ConfigurationManagerURL of the resource file corresponding to the url provided in
String format
getResource in interface ConfigurationManageruri - the url to resolve
URL representing the String url to resolve
Exception - if the String url could not be resolved
public InputStream getInputStream(String url,
String defaultURL)
throws Exception
ConfigurationManagerInputStream of the resource file corresponding to the url provided in
String format
getInputStream in interface ConfigurationManagerurl - 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
public InputStream getInputStream(String uri)
throws Exception
ConfigurationManagerInputStream of the resource file corresponding to the url provided in
String format
getInputStream in interface ConfigurationManageruri - the url to resolve
InputStream of the resource file
Exception - if the String url could not be resolved
public URL getURL(String url)
throws Exception
ConfigurationManagerConfigurationManager.getResource(String)
getURL in interface ConfigurationManagerException
protected String removePrefix(String prefix,
String url)
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||