public abstract class ForwardingResourceLoader extends Object implements ResourceLoader
ResourceLoader
which forwards all its method calls to another ResourceLoader
.
Subclasses should override one or more methods to modify the behavior of the backing ResourceLoader
as desired per
the decorator pattern.PROPERTY_NAME
Constructor and Description |
---|
ForwardingResourceLoader() |
Modifier and Type | Method and Description |
---|---|
Class<?> |
classForName(String name)
Creates a class from a given FQCN
|
protected abstract ResourceLoader |
delegate() |
boolean |
equals(Object obj) |
URL |
getResource(String name)
Gets a resource as a URL by name
|
Collection<URL> |
getResources(String name)
Gets resources as URLs by name
|
int |
hashCode() |
String |
toString() |
protected abstract ResourceLoader delegate()
public Class<?> classForName(String name)
ResourceLoader
classForName
in interface ResourceLoader
name
- The name of the clsaspublic URL getResource(String name)
ResourceLoader
getResource
in interface ResourceLoader
name
- The name of the resourcepublic Collection<URL> getResources(String name)
ResourceLoader
getResources
in interface ResourceLoader
name
- The name of the resourceCopyright © 2008-2015. All Rights Reserved.