|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Strategy interface for resolving a location pattern into Resource objects.
Can be used with any sort of location pattern (e.g. "/WEB-INF/*-context.xml"): Input patterns have to match the strategy implementation. This interface just specifies the conversion method rather than a specific pattern format.
This interface also suggests a new resource prefix "classpath*" for all matching resources from the class path. Note that the resource location is expected to be a path without placeholders in this case (e.g. "/beans.xml"); JAR files or classes directories can contain multiple files of the same name.
CLASSPATH_URL_PREFIX
,
PathMatchingResourcePatternResolver
Field Summary | |
static String |
CLASSPATH_URL_PREFIX
Pseudo URL prefix for all matching resources from the class path. |
Method Summary | |
Resource[] |
getResources(String locationPattern)
Resolve the given location pattern into Resource objects. |
Field Detail |
public static final String CLASSPATH_URL_PREFIX
ResourceLoader.CLASSPATH_URL_PREFIX
,
Constant Field ValuesMethod Detail |
public Resource[] getResources(String locationPattern) throws IOException
locationPattern
- the location pattern to resolve
IOException
- in case of I/O errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |