コード例 #1
0
 /**
  * Create a new instance.
  *
  * @param methodDetails the {@link CacheMethodDetails} related to the cached method
  * @param cacheResolver the cache resolver to resolve regular caches
  */
 protected BaseCacheOperation(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());
 }
コード例 #2
0
 @Override
 public String getCacheName() {
   return methodDetails.getCacheName();
 }
コード例 #3
0
 @Override
 public A getCacheAnnotation() {
   return methodDetails.getCacheAnnotation();
 }
コード例 #4
0
 @Override
 public Set<Annotation> getAnnotations() {
   return methodDetails.getAnnotations();
 }
コード例 #5
0
 @Override
 public Method getMethod() {
   return methodDetails.getMethod();
 }