public interface ResourceResolver
ResourceResolver provides a mechanism to lookup and resolve optionally named, strongly typed resources.ResourceRegistry| Modifier and Type | Method and Description |
|---|---|
<R> R |
getResource(Class<R> clsResource)
Attempts to retrieve the resource that was registered with the specified class.
|
<R> R |
getResource(Class<R> clsResource, String sResourceName)
Attempts to retrieve the resource that was registered with the specified class and name.
|
<R> R getResource(Class<R> clsResource)
R - the type of the resourceclsResource - the class of the resourcenull if the resource is unknown to the ResourceRegistry<R> R getResource(Class<R> clsResource, String sResourceName)
R - the type of the resourceclsResource - the class of the resourcesResourceName - the name of the resourcenull if the resource is unknown to the ResourceRegistry