org.springframework.extensions.config
Interface ConfigService

All Known Implementing Classes:
BaseConfigService, XMLConfigService

public interface ConfigService

Definition of a Configuration Service

Author:
gavinc

Method Summary
 void addDeployer(ConfigDeployer configDeployer)
           
 List<ConfigDeployment> appendConfig(ConfigSource configSource)
           
 Config getConfig(Object object)
          Retrieves the configuration for the given object
 Config getConfig(Object object, ConfigLookupContext context)
          Retrieves the configuration for the given object using the given context
 Config getGlobalConfig()
          Returns just the global configuration, this allows the config service to be used independently of objects if desired (all config is placed in a global section).
 void reset()
          Resets the Config Service
 

Method Detail

getConfig

Config getConfig(Object object)
Retrieves the configuration for the given object

Parameters:
object - The object to use as the basis of the lookup
Returns:
The Config object containing all the matching configuration data

getConfig

Config getConfig(Object object,
                 ConfigLookupContext context)
Retrieves the configuration for the given object using the given context

Parameters:
object - The object to use as the basis of the lookup
context - The context to use for the lookup
Returns:
The Config object containing all the matching configuration data

getGlobalConfig

Config getGlobalConfig()
Returns just the global configuration, this allows the config service to be used independently of objects if desired (all config is placed in a global section).

Returns:
The global config section or null if there isn't one

reset

void reset()
Resets the Config Service


appendConfig

List<ConfigDeployment> appendConfig(ConfigSource configSource)

addDeployer

void addDeployer(ConfigDeployer configDeployer)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.