Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.util
Class ChainedResourceResolver

java.lang.Object
  extended by com.tangosol.util.ChainedResourceResolver

All Implemented Interfaces:
ResourceResolver

public class ChainedResourceResolver
extends java.lang.Object
implements ResourceResolver

A ChainedResourceResolver is a ResourceResolver that chains together one or more other ResourceResolvers, those of which will be queried (in the order in which they are added to the ChainedResourceResolver) when attempting to resolve a resource.

Since:
Coherence 12.1.2
Author:
bo 2012.09.21

Constructor Summary
ChainedResourceResolver(ResourceResolver[] resourceResolvers)
          Constructs a ChainedResourceResolver.

 

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.

 

Constructor Detail

ChainedResourceResolver

public ChainedResourceResolver(ResourceResolver[] resourceResolvers)
Constructs a ChainedResourceResolver.
Parameters:
resourceResolvers - the ResourceResolvers to query

Method Detail

getResource

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

getResource

public 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.
Specified by:
getResource in interface ResourceResolver
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® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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