@Override public Set<Annotation> getAnnotations() { return this.operation.getAnnotations(); }
@Override public A getCacheAnnotation() { return this.operation.getCacheAnnotation(); }
@Override public String getCacheName() { return this.operation.getCacheName(); }
@Test public void simple() { O operation = createSimpleOperation(); assertEquals("Wrong cache name", "simpleCache", operation.getCacheName()); assertEquals("Unexpected number of annotation on " + operation.getMethod(), 1, operation.getAnnotations().size()); assertEquals("Wrong method annotation", operation.getCacheAnnotation(), operation.getAnnotations().iterator().next()); assertNotNull("cache resolver should be set", operation.getCacheResolver()); }
@Override public Method getMethod() { return this.operation.getMethod(); }
public DefaultCacheInvocationContext(JCacheOperation<A> operation, Object target, Object[] args) { this.operation = operation; this.target = target; this.args = args; this.allParameters = operation.getAllParameters(args); }
@Override public Method getMethod() { return this.operation.getMethod(); }
public DefaultCacheInvocationContext(JCacheOperation<A> operation, Object target, Object[] args) { this.operation = operation; this.target = target; this.args = args; this.allParameters = operation.getAllParameters(args); }
@Override public Method getMethod() { return this.operation.getMethod(); }
@Override public A getCacheAnnotation() { return this.operation.getCacheAnnotation(); }
@Override public String getCacheName() { return this.operation.getCacheName(); }
@Override public Set<Annotation> getAnnotations() { return this.operation.getAnnotations(); }
public DefaultCacheInvocationContext(JCacheOperation<A> operation, Object target, Object[] args) { this.operation = operation; this.target = target; this.args = args; this.allParameters = operation.getAllParameters(args); }
@Override public A getCacheAnnotation() { return this.operation.getCacheAnnotation(); }
@Override public String getCacheName() { return this.operation.getCacheName(); }
@Override public Set<Annotation> getAnnotations() { return this.operation.getAnnotations(); }