Package org.springframework.cache.interceptor

Examples of org.springframework.cache.interceptor.BasicOperation


    super(cacheManager);
  }

  @Override
  protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context) {
    BasicOperation operation = context.getOperation();
    if (!(operation instanceof CacheResultOperation)) {
      throw new IllegalStateException("Could not extract exception cache name from " + operation);
    }
    CacheResultOperation cacheResultOperation = (CacheResultOperation) operation;
    String exceptionCacheName = cacheResultOperation.getExceptionCacheName();
View Full Code Here


  }

  @SuppressWarnings("unchecked")
  private Object execute(CacheOperationInvocationContext<?> context, CacheOperationInvoker invoker) {
    CacheOperationInvoker adapter = new CacheOperationInvokerAdapter(invoker);
    BasicOperation operation = context.getOperation();

    if (operation instanceof CacheResultOperation) {
      return cacheResultInterceptor.invoke(
          (CacheOperationInvocationContext<CacheResultOperation>) context, adapter);
    }
View Full Code Here

TOP

Related Classes of org.springframework.cache.interceptor.BasicOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.