Class ConfigurationManagerImpl
java.lang.Object
org.exoplatform.container.configuration.ConfigurationManagerImpl
- All Implemented Interfaces:
ConfigurationManager
- Direct Known Subclasses:
MockConfigurationManagerImpl
Jul 19, 2004
- Version:
- $Id: ConfigurationServiceImpl.java,v 1.8 2004/10/30 02:29:51 tuan08 Exp $
- Author:
- Tuan Nguyen
-
Field Summary
FieldsFields inherited from interface org.exoplatform.container.configuration.ConfigurationManager
LOG_DEBUG, LOG_DEBUG_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationManagerImpl(jakarta.servlet.ServletContext context, Set<String> profiles) ConfigurationManagerImpl(ClassLoader loader, Set<String> profiles) ConfigurationManagerImpl(Set<String> profiles) ConfigurationManagerImpl(Set<String> profiles, boolean logEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguration(jakarta.servlet.ServletContext context, String url) voidaddConfiguration(String url) Adds a new location of a configuration filevoidaddConfiguration(URL url) Adds a new location of a configuration filevoidaddConfiguration(Collection<URL> urls) Adds a collectionURLcorresponding to the location of the configuration files to addgetComponent(Class<?> clazz) Gives the component configuration of a given servicegetComponent(String service) Gives the component configuration of a given serviceGives the configuration of all the registered componentsGives the entire configurationstatic URLReturns the URL of the current document being unmarshalled or null.getInputStream(String uri) Gives theInputStreamof the resource file corresponding to the url provided in String formatgetInputStream(String url, String defaultURL) Gives theInputStreamof the resource file corresponding to the url provided in String formatgetResource(String uri) Gives theURLof the resource file corresponding to the url provided in String formatgetResource(String url, String defaultURL) Gives theURLof the resource file corresponding to the url provided in String formatThis method is equivalent toConfigurationManager.getResource(String)booleanvoidprotected StringremovePrefix(String prefix, String url) voidsetValidateSchema(boolean validateSchema)
-
Field Details
-
WAR_CONF_LOCATION
- See Also:
-
configurations_
-
-
Constructor Details
-
ConfigurationManagerImpl
public ConfigurationManagerImpl() -
ConfigurationManagerImpl
-
ConfigurationManagerImpl
-
ConfigurationManagerImpl
-
ConfigurationManagerImpl
-
-
Method Details
-
getCurrentURL
Returns the URL of the current document being unmarshalled or null.- Returns:
- the URL
-
getConfiguration
Description copied from interface:ConfigurationManagerGives the entire configuration- Specified by:
getConfigurationin interfaceConfigurationManager
-
getProfiles
- Specified by:
getProfilesin interfaceConfigurationManager- Returns:
- a
Setof profiles used to parse configuration entries
-
addConfiguration
- Throws:
Exception
-
addConfiguration
Description copied from interface:ConfigurationManagerAdds a new location of a configuration file- Specified by:
addConfigurationin interfaceConfigurationManager- Parameters:
url- the url of the configuration to add, that we want to resolve- Throws:
Exception- if the configuration could not be found or the url in String format could not be resolved
-
addConfiguration
Description copied from interface:ConfigurationManagerAdds a collectionURLcorresponding to the location of the configuration files to add- Specified by:
addConfigurationin interfaceConfigurationManager- Parameters:
urls- the URLs of configuration files to add
-
addConfiguration
Description copied from interface:ConfigurationManagerAdds a new location of a configuration file- Specified by:
addConfigurationin interfaceConfigurationManager- Parameters:
url- the url of the configuration to add
-
processRemoveConfiguration
public void processRemoveConfiguration() -
getComponent
Description copied from interface:ConfigurationManagerGives the component configuration of a given service- Specified by:
getComponentin interfaceConfigurationManager- Parameters:
service- the FQN of the service for which we want the configuration
-
getComponent
Description copied from interface:ConfigurationManagerGives the component configuration of a given service- Specified by:
getComponentin interfaceConfigurationManager- Parameters:
clazz- theClassof the service for which we want the configuration
-
getComponents
Description copied from interface:ConfigurationManagerGives the configuration of all the registered components- Specified by:
getComponentsin interfaceConfigurationManager
-
isValidateSchema
public boolean isValidateSchema() -
setValidateSchema
public void setValidateSchema(boolean validateSchema) -
getResource
Description copied from interface:ConfigurationManagerGives theURLof the resource file corresponding to the url provided in String format- Specified by:
getResourcein interfaceConfigurationManager- Parameters:
url- the url to resolvedefaultURL- The default URL to use in case the parameterurlis null.- Returns:
- The
URLrepresenting the String url to resolve - Throws:
Exception- if the String url could not be resolved
-
getResource
Description copied from interface:ConfigurationManagerGives theURLof the resource file corresponding to the url provided in String format- Specified by:
getResourcein interfaceConfigurationManager- Parameters:
uri- the url to resolve- Returns:
- The
URLrepresenting the String url to resolve - Throws:
Exception- if the String url could not be resolved
-
getInputStream
Description copied from interface:ConfigurationManagerGives theInputStreamof the resource file corresponding to the url provided in String format- Specified by:
getInputStreamin interfaceConfigurationManager- Parameters:
url- the url to resolvedefaultURL- The default URL to use in case the parameterurlis null.- Returns:
- The
InputStreamof the resource file - Throws:
Exception- if the String url could not be resolved
-
getInputStream
Description copied from interface:ConfigurationManagerGives theInputStreamof the resource file corresponding to the url provided in String format- Specified by:
getInputStreamin interfaceConfigurationManager- Parameters:
uri- the url to resolve- Returns:
- The
InputStreamof the resource file - Throws:
Exception- if the String url could not be resolved
-
getURL
Description copied from interface:ConfigurationManagerThis method is equivalent toConfigurationManager.getResource(String)- Specified by:
getURLin interfaceConfigurationManager- Throws:
Exception
-
removePrefix
-