Package com.tangosol.util
Interface ResourceResolver
-
- All Known Subinterfaces:
ProcessingContext,ResourceRegistry
- All Known Implementing Classes:
ChainedResourceResolver,DefaultProcessingContext,NullImplementation.NullResourceRegistry,SimpleResourceRegistry,SimpleResourceResolver
public interface ResourceResolverAResourceResolverprovides a mechanism to lookup and resolve optionally named, strongly typed resources.- Since:
- Coherence 12.1.2
- Author:
- bo 2012.09.17
- See Also:
ResourceRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> RgetResource(Class<R> clsResource)Attempts to retrieve the resource that was registered with the specified class.<R> RgetResource(Class<R> clsResource, String sResourceName)Attempts to retrieve the resource that was registered with the specified class and name.
-
-
-
Method Detail
-
getResource
<R> R getResource(Class<R> clsResource)
Attempts to retrieve the resource that was registered with the specified class.- Type Parameters:
R- the type of the resource- Parameters:
clsResource- the class of the resource- Returns:
- the registered resource or
nullif the resource is unknown to theResourceRegistry
-
getResource
<R> R getResource(Class<R> clsResource, String sResourceName)
Attempts to retrieve the resource that was registered with the specified class and name.- Type Parameters:
R- the type of the resource- Parameters:
clsResource- the class of the resourcesResourceName- the name of the resource- Returns:
- the registered resource or
nullif the resource is unknown to theResourceRegistry
-
-