org.springframework.extensions.config
Class ConfigBootstrap

java.lang.Object
  extended by org.springframework.extensions.config.ConfigBootstrap
All Implemented Interfaces:
ConfigDeployer

public class ConfigBootstrap
extends Object
implements ConfigDeployer

Spring bean used to deploy additional config files into the injected config service.

Author:
Gavin Cornwell

Field Summary
protected  List<String> configs
           
protected  ConfigService configService
           
 
Constructor Summary
ConfigBootstrap()
           
 
Method Summary
 List<ConfigDeployment> initConfig()
          Method called by ConfigService when the configuration files represented by this ConfigDeployer need to be initialised.
 void register()
          Registers this object with the injected ConfigService
 void setConfigs(List<String> configs)
          Set the configs
 void setConfigService(ConfigService configService)
          Sets the ConfigService instance to deploy to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configService

protected ConfigService configService

configs

protected List<String> configs
Constructor Detail

ConfigBootstrap

public ConfigBootstrap()
Method Detail

setConfigs

public void setConfigs(List<String> configs)
Set the configs

Parameters:
configs - the configs

setConfigService

public void setConfigService(ConfigService configService)
Sets the ConfigService instance to deploy to

Parameters:
configService - ConfigService instance to deploy to

initConfig

public List<ConfigDeployment> initConfig()
Method called by ConfigService when the configuration files represented by this ConfigDeployer need to be initialised.

Specified by:
initConfig in interface ConfigDeployer
Returns:
List of ConfigDeployment objects

register

public void register()
Registers this object with the injected ConfigService

Specified by:
register in interface ConfigDeployer


Copyright © 2009 SpringSource, Inc. All Rights Reserved.