org.chenillekit.core.services
Interface ConfigurationService

All Known Implementing Classes:
ConfigurationServiceImpl

public interface ConfigurationService

Version:
$Id: ConfigurationService.java 349 2008-11-25 10:12:47Z homburgs $

Method Summary
 org.apache.commons.configuration.Configuration getConfiguration()
          get the configuration from system (JVM).
 org.apache.commons.configuration.Configuration getConfiguration(Context context)
          get the configuration from JNDI context.
 org.apache.commons.configuration.Configuration getConfiguration(DataSource datasource, String table, String nameColumn, String keyColumn, String valueColumn, String name)
          Build a configuration from a table containing multiple configurations.
 org.apache.commons.configuration.Configuration getConfiguration(Resource configurationResource)
          get the configuration from the named resource.
 org.apache.commons.configuration.Configuration getConfiguration(Resource configurationResource, boolean mergeWithSysProps)
          get the configuration from the named resource.
 

Method Detail

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration(Resource configurationResource)
get the configuration from the named resource.

the system properties merged auto. into the returned configuration

Parameters:
configurationResource - the configuration resource
Returns:
the configuration

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration(Resource configurationResource,
                                                                boolean mergeWithSysProps)
get the configuration from the named resource.

Parameters:
configurationResource - the configuration resource
mergeWithSysProps - merge the configuration resource with system properties
Returns:
the configuration

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration(Context context)
get the configuration from JNDI context.

Parameters:
context - the JNDI context
Returns:
the configuration

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration()
get the configuration from system (JVM).

Returns:
the configuration

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration(DataSource datasource,
                                                                String table,
                                                                String nameColumn,
                                                                String keyColumn,
                                                                String valueColumn,
                                                                String name)
Build a configuration from a table containing multiple configurations.

Parameters:
datasource - the datasource to connect to the database
table - the name of the table containing the configurations
nameColumn - the column containing the name of the configuration
keyColumn - the column containing the keys of the configuration
valueColumn - the column containing the values of the configuration
name - the name of the configuration


Copyright © 2008-2010 ChenilleKit. All Rights Reserved.