Codota Logo
JCacheAspectSupport$CacheOperationInvokerAdapter.<init>
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.springframework.cache.jcache.interceptor.JCacheAspectSupport$CacheOperationInvokerAdapter.<init> (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<init>

Popular methods of JCacheAspectSupport$CacheOperationInvokerAdapter

    Popular in Java

    • Updating database using SQL prepared statement
    • getSupportFragmentManager (FragmentActivity)
    • getSystemService (Context)
    • notifyDataSetChanged (ArrayAdapter)
    • FileOutputStream (java.io)
      A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • List (java.util)
      A List is a collection which maintains an ordering for its elements. Every element in the List has a
    • Vector (java.util)
      The Vector class implements a growable array of objects. Like an array, it contains components that
    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