com.objectwave.configuration
Class ConfigurationServiceFactory

java.lang.Object
  |
  +--com.objectwave.configuration.ConfigurationServiceFactory

public class ConfigurationServiceFactory
extends java.lang.Object

Usage of these classes are hidden within a finder object created for your properties. You begin by creating a PropertySource ( easily done by extending BasicPropertySource ). A property source will know how to locate property detail. A property detail is a 'struct' that will hold the raw property values for your application

Version:
$Id: ConfigurationServiceFactory.java,v 2.0 2001/06/11 15:46:53 dave_hoag Exp $
Author:
dhoag

Field Summary
protected static ConfigurationService defaultConfigurationService
           
 
Constructor Summary
ConfigurationServiceFactory()
          Constructor for the ConfigurationServiceFactory object
 
Method Summary
static ConfigurationService getConfigurationService(java.lang.Object context)
          Gets the ConfigurationService that is appropriate for the provided context.
static void initConfigService()
          Create a new instance of DefaultConfigurationService if one does not already exist.
static void setDefaultConfigurationService(ConfigurationService service)
          Sets the DefaultConfigurationService attribute of the ConfigurationServiceFactory class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultConfigurationService

protected static ConfigurationService defaultConfigurationService
Constructor Detail

ConfigurationServiceFactory

public ConfigurationServiceFactory()
Constructor for the ConfigurationServiceFactory object

Method Detail

setDefaultConfigurationService

public static void setDefaultConfigurationService(ConfigurationService service)
Sets the DefaultConfigurationService attribute of the ConfigurationServiceFactory class

Parameters:
service - The new DefaultConfigurationService value

getConfigurationService

public static ConfigurationService getConfigurationService(java.lang.Object context)
Gets the ConfigurationService that is appropriate for the provided context.

Parameters:
context -
Returns:
The ConfigurationService value

initConfigService

public static void initConfigService()
Create a new instance of DefaultConfigurationService if one does not already exist.