DefaultResourceLoader is a standalone implementation that is usable outside an ApplicationContext, also used by ResourceEditor.
Bean properties of type Resource and Resource array can be populated from Strings when running in an ApplicationContext, using the particular context's resource loading strategy.
| Field Summary | |
|---|---|
| static String |
Pseudo URL prefix for loading from the class path: "classpath:" |
| Method Summary | |
|---|---|
| Resource |
Return a Resource handle for the specified resource. |
getInputStream calls.
Note that a Resource handle does not imply an existing resource; you need to invoke Resource's "exists" to check for existence.