com.cisco.oss.foundation.configuration
Class ConfigurationFactory

java.lang.Object
  extended by com.cisco.oss.foundation.configuration.ConfigurationFactory

public final class ConfigurationFactory
extends Object

Factory to get a Configuration object that gets all the configuration files in the system and makes them a single object. This class can be used to work with the org.apache.commons.configuration.Configuration without the need to use Spring. It has 2 public API's to get all the configuration layers, or just the default layer.

Author:
Joel Gurfinkel, Yair Ogen
See Also:
Configuration

Method Summary
static org.apache.commons.configuration.Configuration getConfiguration()
          get the full configuration object that contains all the configuration layers: customer, deployment and factory.
static org.apache.commons.configuration.Configuration getDefaultConfiguration()
          get only a configuration that contains all the factory layer files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfiguration

public static org.apache.commons.configuration.Configuration getConfiguration()
get the full configuration object that contains all the configuration layers: customer, deployment and factory.

Returns:
the configuration object

getDefaultConfiguration

public static org.apache.commons.configuration.Configuration getDefaultConfiguration()
get only a configuration that contains all the factory layer files.

Returns:
a configuration that contains all the factory layer files.


Copyright © 2014 Cisco. All Rights Reserved.