Used as an SPI for DefaultResourceLoader, allowing for
custom protocols to be handled without subclassing the loader
implementation (or application context implementation).
DefaultResourceLoader#addProtocolResolver
| Modifier and Type | Method and Description |
|---|---|
| public Resource | Returns: a correspondingResource handle if the given location
matches this resolver's protocol, or null otherwisethe user-specified resource location location, ResourceLoader the associated resource loader resourceLoader)Resolve the given location against the given resource loader if this implementation's protocol matches. |
| resolve | back to summary |
|---|---|
| public Resource resolve(String location, ResourceLoader resourceLoader) Resolve the given location against the given resource loader if this implementation's protocol matches.
| |