Codota Logo
JCacheAspectSupport$CacheOperationInvokerAdapter
Code IndexAdd Codota to your IDE (free)

How to use
JCacheAspectSupport$CacheOperationInvokerAdapter
in
org.springframework.cache.jcache.interceptor

Best Java code snippets using org.springframework.cache.jcache.interceptor.JCacheAspectSupport$CacheOperationInvokerAdapter (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

@SuppressWarnings("unchecked")
@Nullable
private Object execute(CacheOperationInvocationContext<?> context, CacheOperationInvoker invoker) {
  CacheOperationInvoker adapter = new CacheOperationInvokerAdapter(invoker);
  BasicOperation operation = context.getOperation();
  if (operation instanceof CacheResultOperation) {
    Assert.state(this.cacheResultInterceptor != null, "No CacheResultInterceptor");
    return this.cacheResultInterceptor.invoke(
        (CacheOperationInvocationContext<CacheResultOperation>) context, adapter);
  }
  else if (operation instanceof CachePutOperation) {
    Assert.state(this.cachePutInterceptor != null, "No CachePutInterceptor");
    return this.cachePutInterceptor.invoke(
        (CacheOperationInvocationContext<CachePutOperation>) context, adapter);
  }
  else if (operation instanceof CacheRemoveOperation) {
    Assert.state(this.cacheRemoveEntryInterceptor != null, "No CacheRemoveEntryInterceptor");
    return this.cacheRemoveEntryInterceptor.invoke(
        (CacheOperationInvocationContext<CacheRemoveOperation>) context, adapter);
  }
  else if (operation instanceof CacheRemoveAllOperation) {
    Assert.state(this.cacheRemoveAllInterceptor != null, "No CacheRemoveAllInterceptor");
    return this.cacheRemoveAllInterceptor.invoke(
        (CacheOperationInvocationContext<CacheRemoveAllOperation>) context, adapter);
  }
  else {
    throw new IllegalArgumentException("Cannot handle " + operation);
  }
}
origin: org.springframework/spring-context-support

@SuppressWarnings("unchecked")
@Nullable
private Object execute(CacheOperationInvocationContext<?> context, CacheOperationInvoker invoker) {
  CacheOperationInvoker adapter = new CacheOperationInvokerAdapter(invoker);
  BasicOperation operation = context.getOperation();
  if (operation instanceof CacheResultOperation) {
    Assert.state(this.cacheResultInterceptor != null, "No CacheResultInterceptor");
    return this.cacheResultInterceptor.invoke(
        (CacheOperationInvocationContext<CacheResultOperation>) context, adapter);
  }
  else if (operation instanceof CachePutOperation) {
    Assert.state(this.cachePutInterceptor != null, "No CachePutInterceptor");
    return this.cachePutInterceptor.invoke(
        (CacheOperationInvocationContext<CachePutOperation>) context, adapter);
  }
  else if (operation instanceof CacheRemoveOperation) {
    Assert.state(this.cacheRemoveEntryInterceptor != null, "No CacheRemoveEntryInterceptor");
    return this.cacheRemoveEntryInterceptor.invoke(
        (CacheOperationInvocationContext<CacheRemoveOperation>) context, adapter);
  }
  else if (operation instanceof CacheRemoveAllOperation) {
    Assert.state(this.cacheRemoveAllInterceptor != null, "No CacheRemoveAllInterceptor");
    return this.cacheRemoveAllInterceptor.invoke(
        (CacheOperationInvocationContext<CacheRemoveAllOperation>) context, adapter);
  }
  else {
    throw new IllegalArgumentException("Cannot handle " + operation);
  }
}
origin: apache/servicemix-bundles

CacheOperationInvoker adapter = new CacheOperationInvokerAdapter(invoker);
BasicOperation operation = context.getOperation();
org.springframework.cache.jcache.interceptorJCacheAspectSupport$CacheOperationInvokerAdapter

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getApplicationContext (Context)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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