org.springframework.extensions.config.source
Class ClassPathConfigSource

java.lang.Object
  extended by org.springframework.extensions.config.source.BaseConfigSource
      extended by 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

Constructor Summary
ClassPathConfigSource(List<String> sourceStrings)
          Constructs an ClassPathConfigSource using the list of classpath elements
ClassPathConfigSource(String classpath)
          Constructs a class path configuration source that uses a single file
 
Method Summary
 InputStream getInputStream(String sourceString)
          Retrieves an input stream for the given class path source
 
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

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
Method Detail

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.