org.springframework.extensions.config.source
Class FileConfigSource

java.lang.Object
  extended by org.springframework.extensions.config.source.BaseConfigSource
      extended by org.springframework.extensions.config.source.FileConfigSource
All Implemented Interfaces:
ConfigSource

public class FileConfigSource
extends BaseConfigSource

ConfigSource implementation that gets its data via a file or files.

Author:
gavinc

Constructor Summary
FileConfigSource(List<String> sourceStrings)
           
FileConfigSource(String filename)
          Constructs a file configuration source that uses a single file
 
Method Summary
protected  InputStream getInputStream(String sourceString)
          Retrieves an InputStream to the source represented by the given source location.
 
Methods inherited from class org.springframework.extensions.config.source.BaseConfigSource
addSourceString, getConfigDeployments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileConfigSource

public FileConfigSource(String filename)
Constructs a file configuration source that uses a single file

Parameters:
filename - the name of the file from which to get config
See Also:
FileConfigSource(java.util.List)

FileConfigSource

public FileConfigSource(List<String> sourceStrings)
Parameters:
sourceStrings - List of file paths to get config from
Method Detail

getInputStream

protected InputStream getInputStream(String sourceString)
Description copied from class: BaseConfigSource
Retrieves an InputStream to the source represented by the given source location. The meaning of the source location will depend on the implementation.

Specified by:
getInputStream in class BaseConfigSource
Parameters:
sourceString - a valid filename as accepted by the file constructor
Returns:
Returns a stream onto the file


Copyright © 2009 SpringSource, Inc. All Rights Reserved.