Codota Logo
AbstractJCacheOperation
Code IndexAdd Codota to your IDE (free)

How to use
AbstractJCacheOperation
in
org.springframework.cache.jcache.interceptor

Best Java code snippets using org.springframework.cache.jcache.interceptor.AbstractJCacheOperation (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

@Override
public Set<String> getCacheNames() {
  return Collections.singleton(getCacheName());
}
origin: spring-projects/spring-framework

@Override
public String toString() {
  return getOperationDescription().append("]").toString();
}
origin: spring-projects/spring-framework

/**
 * Construct a new {@code AbstractJCacheOperation}.
 * @param methodDetails the {@link CacheMethodDetails} related to the cached method
 * @param cacheResolver the cache resolver to resolve regular caches
 */
protected AbstractJCacheOperation(CacheMethodDetails<A> methodDetails, CacheResolver cacheResolver) {
  Assert.notNull(methodDetails, "CacheMethodDetails must not be null");
  Assert.notNull(cacheResolver, "CacheResolver must not be null");
  this.methodDetails = methodDetails;
  this.cacheResolver = cacheResolver;
  this.allParameterDetails = initializeAllParameterDetails(methodDetails.getMethod());
}
origin: spring-projects/spring-framework

/**
 * Resolve the cache to use.
 * @param context the invocation context
 * @return the cache to use (never null)
 */
protected Cache resolveCache(CacheOperationInvocationContext<O> context) {
  Collection<? extends Cache> caches = context.getOperation().getCacheResolver().resolveCaches(context);
  Cache cache = extractFrom(caches);
  if (cache == null) {
    throw new IllegalStateException("Cache could not have been resolved for " + context.getOperation());
  }
  return cache;
}
origin: org.springframework/spring-context-support

/**
 * Resolve the cache to use.
 * @param context the invocation context
 * @return the cache to use (never null)
 */
protected Cache resolveCache(CacheOperationInvocationContext<O> context) {
  Collection<? extends Cache> caches = context.getOperation().getCacheResolver().resolveCaches(context);
  Cache cache = extractFrom(caches);
  if (cache == null) {
    throw new IllegalStateException("Cache could not have been resolved for " + context.getOperation());
  }
  return cache;
}
origin: org.springframework/spring-context-support

/**
 * Construct a new {@code AbstractJCacheOperation}.
 * @param methodDetails the {@link CacheMethodDetails} related to the cached method
 * @param cacheResolver the cache resolver to resolve regular caches
 */
protected AbstractJCacheOperation(CacheMethodDetails<A> methodDetails, CacheResolver cacheResolver) {
  Assert.notNull(methodDetails, "CacheMethodDetails must not be null");
  Assert.notNull(cacheResolver, "CacheResolver must not be null");
  this.methodDetails = methodDetails;
  this.cacheResolver = cacheResolver;
  this.allParameterDetails = initializeAllParameterDetails(methodDetails.getMethod());
}
origin: apache/servicemix-bundles

/**
 * Resolve the cache to use.
 * @param context the invocation context
 * @return the cache to use (never null)
 */
protected Cache resolveCache(CacheOperationInvocationContext<O> context) {
  Collection<? extends Cache> caches = context.getOperation().getCacheResolver().resolveCaches(context);
  Cache cache = extractFrom(caches);
  if (cache == null) {
    throw new IllegalStateException("Cache could not have been resolved for " + context.getOperation());
  }
  return cache;
}
origin: org.springframework/spring-context-support

@Override
public Set<String> getCacheNames() {
  return Collections.singleton(getCacheName());
}
origin: org.springframework/spring-context-support

@Override
public String toString() {
  return getOperationDescription().append("]").toString();
}
origin: apache/servicemix-bundles

/**
 * Create a new instance.
 * @param methodDetails the {@link CacheMethodDetails} related to the cached method
 * @param cacheResolver the cache resolver to resolve regular caches
 */
protected AbstractJCacheOperation(CacheMethodDetails<A> methodDetails, CacheResolver cacheResolver) {
  Assert.notNull(methodDetails, "method details must not be null.");
  Assert.notNull(cacheResolver, "cache resolver must not be null.");
  this.methodDetails = methodDetails;
  this.cacheResolver = cacheResolver;
  this.allParameterDetails = initializeAllParameterDetails(methodDetails.getMethod());
}
origin: apache/servicemix-bundles

@Override
public Set<String> getCacheNames() {
  return Collections.singleton(getCacheName());
}
origin: apache/servicemix-bundles

@Override
public String toString() {
  return getOperationDescription().append("]").toString();
}
org.springframework.cache.jcache.interceptorAbstractJCacheOperation

Javadoc

A base JCacheOperation implementation.

Most used methods

  • getCacheName
  • getCacheResolver
  • getOperationDescription
    Return an identifying description for this caching operation.Available to subclasses, for inclusion
  • initializeAllParameterDetails

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now