org.exoplatform.container.configuration
Class ConfigurationManagerImpl

java.lang.Object
  extended by org.exoplatform.container.configuration.ConfigurationManagerImpl
All Implemented Interfaces:
ConfigurationManager
Direct Known Subclasses:
MockConfigurationManagerImpl

public class ConfigurationManagerImpl
extends java.lang.Object
implements ConfigurationManager

Jul 19, 2004


Field Summary
protected  Configuration configurations_
           
static boolean LOG_DEBUG
           
static java.lang.String LOG_DEBUG_PROPERTY
           
static java.lang.String WAR_CONF_LOCATION
           
 
Constructor Summary
ConfigurationManagerImpl()
           
ConfigurationManagerImpl(java.lang.ClassLoader loader)
           
ConfigurationManagerImpl(javax.servlet.ServletContext context)
           
 
Method Summary
 void addConfiguration(java.util.Collection urls)
           
 void addConfiguration(java.lang.String url)
           
 void addConfiguration(java.net.URL url)
           
 Component getComponent(java.lang.Class clazz)
           
 Component getComponent(java.lang.String service)
           
 java.util.Collection getComponents()
           
 Configuration getConfiguration()
           
static java.net.URL getCurrentURL()
          Returns the URL of the current document being unmarshalled or null.
 java.io.InputStream getInputStream(java.lang.String uri)
           
 java.io.InputStream getInputStream(java.lang.String url, java.lang.String defaultURL)
           
 java.net.URL getResource(java.lang.String uri)
           
 java.net.URL getResource(java.lang.String url, java.lang.String defaultURL)
           
 java.net.URL getURL(java.lang.String url)
           
 boolean isDefault(java.lang.String value)
           
 void processRemoveConfiguration()
           
protected  java.lang.String removePrefix(java.lang.String prefix, java.lang.String url)
           
static java.lang.String resolveSystemProperties(java.lang.String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAR_CONF_LOCATION

public static final java.lang.String WAR_CONF_LOCATION
See Also:
Constant Field Values

LOG_DEBUG_PROPERTY

public static final java.lang.String LOG_DEBUG_PROPERTY
See Also:
Constant Field Values

LOG_DEBUG

public static final boolean LOG_DEBUG

configurations_

protected Configuration configurations_
Constructor Detail

ConfigurationManagerImpl

public ConfigurationManagerImpl()

ConfigurationManagerImpl

public ConfigurationManagerImpl(javax.servlet.ServletContext context)

ConfigurationManagerImpl

public ConfigurationManagerImpl(java.lang.ClassLoader loader)
Method Detail

getCurrentURL

public static java.net.URL getCurrentURL()
Returns the URL of the current document being unmarshalled or null.

Returns:
the URL

getConfiguration

public Configuration getConfiguration()
Specified by:
getConfiguration in interface ConfigurationManager

addConfiguration

public void addConfiguration(java.lang.String url)
                      throws java.lang.Exception
Specified by:
addConfiguration in interface ConfigurationManager
Throws:
java.lang.Exception

addConfiguration

public void addConfiguration(java.util.Collection urls)
                      throws java.lang.Exception
Specified by:
addConfiguration in interface ConfigurationManager
Throws:
java.lang.Exception

addConfiguration

public void addConfiguration(java.net.URL url)
                      throws java.lang.Exception
Specified by:
addConfiguration in interface ConfigurationManager
Throws:
java.lang.Exception

processRemoveConfiguration

public void processRemoveConfiguration()

getComponent

public Component getComponent(java.lang.String service)
Specified by:
getComponent in interface ConfigurationManager

getComponent

public Component getComponent(java.lang.Class clazz)
                       throws java.lang.Exception
Specified by:
getComponent in interface ConfigurationManager
Throws:
java.lang.Exception

getComponents

public java.util.Collection getComponents()
Specified by:
getComponents in interface ConfigurationManager

getResource

public java.net.URL getResource(java.lang.String url,
                                java.lang.String defaultURL)
                         throws java.lang.Exception
Specified by:
getResource in interface ConfigurationManager
Throws:
java.lang.Exception

getResource

public java.net.URL getResource(java.lang.String uri)
                         throws java.lang.Exception
Specified by:
getResource in interface ConfigurationManager
Throws:
java.lang.Exception

getInputStream

public java.io.InputStream getInputStream(java.lang.String url,
                                          java.lang.String defaultURL)
                                   throws java.lang.Exception
Specified by:
getInputStream in interface ConfigurationManager
Throws:
java.lang.Exception

getInputStream

public java.io.InputStream getInputStream(java.lang.String uri)
                                   throws java.lang.Exception
Specified by:
getInputStream in interface ConfigurationManager
Throws:
java.lang.Exception

getURL

public java.net.URL getURL(java.lang.String url)
                    throws java.lang.Exception
Specified by:
getURL in interface ConfigurationManager
Throws:
java.lang.Exception

resolveSystemProperties

public static java.lang.String resolveSystemProperties(java.lang.String input)
Parameters:
input - the input
Returns:
the resolved input

isDefault

public boolean isDefault(java.lang.String value)
Specified by:
isDefault in interface ConfigurationManager

removePrefix

protected java.lang.String removePrefix(java.lang.String prefix,
                                        java.lang.String url)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.