All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tangosol.util.ResourceResolver Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.util;

/**
 * A {@link ResourceResolver} provides a mechanism to lookup and resolve
 * optionally named, strongly typed resources.
 *
 * @see ResourceRegistry
 *
 * @author bo 2012.09.17
 * @since Coherence 12.1.2
 */
public interface ResourceResolver
    {
    /**
     * Attempts to retrieve the resource that was registered with the
     * specified class.
     *
     * @param             the type of the resource
     * @param clsResource    the class of the resource
     *
     * @return the registered resource or null if the resource is
     *         unknown to the {@link ResourceRegistry}
     */
    public  R getResource(Class clsResource);

    /**
     * Attempts to retrieve the resource that was registered with the
     * specified class and name.
     *
     * @param             the type of the resource
     * @param clsResource    the class of the resource
     * @param sResourceName  the name of the resource
     *
     * @return the registered resource or null if the resource is
     *         unknown to the {@link ResourceRegistry}
     */
    public  R getResource(Class clsResource, String sResourceName);
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy