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

javax.cache.annotation.CacheResolver Maven / Gradle / Ivy

There is a newer version: 0.40.13
Show newest version
/**
 *  Copyright (c) 2011-2013 Terracotta, Inc.
 *  Copyright (c) 2011-2013 Oracle and/or its affiliates.
 *
 *  All rights reserved. Use is subject to license terms.
 */


package javax.cache.annotation;

import javax.cache.Cache;
import java.lang.annotation.Annotation;

/**
 * Determines the {@link Cache} to use for an intercepted method invocation.
 * 

* Implementations MUST be thread-safe. * * @author Eric Dalquist * @see CacheResolverFactory * @since 1.0 */ public interface CacheResolver { /** * Resolve the {@link Cache} to use for the {@link CacheInvocationContext}. * * @param cacheInvocationContext The context data for the intercepted method * invocation * @return The {@link Cache} instance to be used by the interceptor */ Cache resolveCache(CacheInvocationContext cacheInvocationContext); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy