Codota Logo
CacheResultInterceptor.invoke
Code IndexAdd Codota to your IDE (free)

How to use
invoke
method
in
org.springframework.cache.jcache.interceptor.CacheResultInterceptor

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • 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

return this.cachePutInterceptor.invoke(
    (CacheOperationInvocationContext<CachePutOperation>) context, adapter);
return this.cacheRemoveEntryInterceptor.invoke(
    (CacheOperationInvocationContext<CacheRemoveOperation>) context, adapter);
return this.cacheRemoveAllInterceptor.invoke(
    (CacheOperationInvocationContext<CacheRemoveAllOperation>) context, adapter);
org.springframework.cache.jcache.interceptorCacheResultInterceptorinvoke

Popular methods of CacheResultInterceptor

  • <init>
  • cacheException
  • checkForCachedException
    Check for a cached exception. If the exception is found, throw it directly.
  • cloneException
  • doGet
  • doPut
  • extractFrom
  • findCommonAncestorIndex
  • generateKey
  • resolveCache
  • resolveExceptionCache
  • rewriteCallStack
    Rewrite the call stack of the specified exception so that it matches the current call stack up to (i
  • resolveExceptionCache,
  • rewriteCallStack

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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