org.springframework.extensions.config.source
Class ClassPathConfigSource
java.lang.Object
org.springframework.extensions.config.source.BaseConfigSource
org.springframework.extensions.config.source.ClassPathConfigSource
- All Implemented Interfaces:
- ConfigSource
public class ClassPathConfigSource
- extends BaseConfigSource
ConfigSource implementation that gets its data via the class path.
- Author:
- gavinc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathConfigSource
public ClassPathConfigSource(String classpath)
- Constructs a class path configuration source that uses a single file
- Parameters:
classpath
- the classpath from which to get config- See Also:
ClassPathConfigSource(java.util.List)
ClassPathConfigSource
public ClassPathConfigSource(List<String> sourceStrings)
- Constructs an ClassPathConfigSource using the list of classpath elements
- Parameters:
sourceStrings
- List of classpath resources to get config from
getInputStream
public InputStream getInputStream(String sourceString)
- Retrieves an input stream for the given class path source
- Specified by:
getInputStream
in class BaseConfigSource
- Parameters:
sourceString
- The class path resource to search for
- Returns:
- The input stream
Copyright © 2009 SpringSource, Inc. All Rights Reserved.