|
||||||||||
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 org.springframework.extensions.config.source.UrlConfigSource
public class UrlConfigSource
ConfigSource that looks for a prefix to determine where to look for the config. Valid prefixes are:
file:/home/root/settings/config.xml
.
Field Summary | |
---|---|
static String |
PREFIX_CLASSPATH
|
static String |
PREFIX_FILE
|
static String |
PREFIX_HTTP
|
static String |
PREFIX_JAR
|
static String |
PREFIX_WEBAPP
|
Constructor Summary | |
---|---|
UrlConfigSource(List<String> sourceLocations)
Constructs a config location that figures out where to look for the config |
|
UrlConfigSource(String sourceLocation)
Constructs a config location that figures out where to look for the config |
Method Summary | |
---|---|
InputStream |
getInputStream(String sourceUrl)
Retrieves an InputStream to the source represented by the given source location. |
protected void |
processSourceString(String sourceString)
Processes the given source string and adds the resulting config source files to the list to be parsed. |
protected void |
processWildcardJarSource(String sourcePattern)
Processes the given JAR file pattern source. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
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 |
Field Detail |
---|
public static final String PREFIX_JAR
public static final String PREFIX_FILE
public static final String PREFIX_HTTP
public static final String PREFIX_CLASSPATH
public static final String PREFIX_WEBAPP
Constructor Detail |
---|
public UrlConfigSource(String sourceLocation)
sourceLocation
- The location from which to get configClassPathConfigSource.ClassPathConfigSource(java.util.List)
public UrlConfigSource(List<String> sourceLocations)
sourceLocations
- List of locations from which to get the configMethod Detail |
---|
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
public InputStream getInputStream(String sourceUrl)
BaseConfigSource
getInputStream
in class BaseConfigSource
sourceUrl
- the source location
protected void processSourceString(String sourceString)
If the sourceString contains a wildcard the appropriate resolution processing is performed to obtain a list of physical locations.
sourceString
- protected void processWildcardJarSource(String sourcePattern)
sourcePattern
- The wildcard pattern for files to find within JARs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |