Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Interface ResourceResolver

All Known Subinterfaces:
ProcessingContext, ResourceRegistry
All Known Implementing Classes:
ChainedResourceResolver, DefaultProcessingContext, SimpleResourceRegistry, SimpleResourceResolver

public interface ResourceResolver

A ResourceResolver provides 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
 java.lang.Object getResource(java.lang.Class clsResource)
          Attempts to retrieve the resource that was registered with the specified class.
 java.lang.Object getResource(java.lang.Class clsResource, java.lang.String sResourceName)
          Attempts to retrieve the resource that was registered with the specified class and name.

 

Method Detail

getResource

java.lang.Object getResource(java.lang.Class clsResource)
Attempts to retrieve the resource that was registered with the specified class.
Parameters:
clsResource - the class of the resource
Returns:
the registered resource or null if the resource is unknown to the ResourceRegistry

getResource

java.lang.Object getResource(java.lang.Class clsResource,
                             java.lang.String sResourceName)
Attempts to retrieve the resource that was registered with the specified class and name.
Parameters:
clsResource - the class of the resource
sResourceName - the name of the resource
Returns:
the registered resource or null if the resource is unknown to the ResourceRegistry

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.