org.springframework.extensions.config.source
Class FileConfigSource
java.lang.Object
org.springframework.extensions.config.source.BaseConfigSource
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.