|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.config.source.BaseConfigSource
public abstract class BaseConfigSource
Base class for ConfigSource implementations, provides support for parsing comma separated sources and iterating around them
Constructor Summary | |
---|---|
protected |
BaseConfigSource()
Default constructor. |
protected |
BaseConfigSource(List<String> sourceStrings)
|
Method Summary | |
---|---|
protected void |
addSourceString(String sourceString)
Conditionally adds the source to the set of source strings if its trimmed length is greater than 0. |
List<ConfigDeployment> |
getConfigDeployments()
Converts all the sources given in the constructor into a list of input streams. |
protected abstract InputStream |
getInputStream(String sourceString)
Retrieves an InputStream to the source represented by the given source location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseConfigSource()
protected BaseConfigSource(List<String> sourceStrings)
sourceStrings
- a list of implementation-specific sources. The meaning of the
source is particular to the implementation, eg. for a file config
source they would be file names.Method Detail |
---|
protected void addSourceString(String sourceString)
public final List<ConfigDeployment> getConfigDeployments()
getConfigDeployments
in interface ConfigSource
getInputStream(String)
protected abstract InputStream getInputStream(String sourceString)
sourceString
- the source location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |