javax.cache.annotation
Annotation Type CacheResult


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface CacheResult


Optional Element Summary
 java.lang.Class<? extends java.lang.Throwable>[] cachedExceptions
           
 java.lang.Class<? extends CacheKeyGenerator> cacheKeyGenerator
           
 java.lang.String cacheName
           
 java.lang.Class<? extends CacheResolverFactory> cacheResolverFactory
           
 java.lang.String exceptionCacheName
           
 java.lang.Class<? extends java.lang.Throwable>[] nonCachedExceptions
           
 boolean skipGet
           
 

cacheName

public abstract java.lang.String cacheName
Default:
""

skipGet

public abstract boolean skipGet
Default:
false

cacheResolverFactory

public abstract java.lang.Class<? extends CacheResolverFactory> cacheResolverFactory
Default:
javax.cache.annotation.CacheResolverFactory.class

cacheKeyGenerator

public abstract java.lang.Class<? extends CacheKeyGenerator> cacheKeyGenerator
Default:
javax.cache.annotation.CacheKeyGenerator.class

exceptionCacheName

public abstract java.lang.String exceptionCacheName
Default:
""

cachedExceptions

public abstract java.lang.Class<? extends java.lang.Throwable>[] cachedExceptions
Default:
{}

nonCachedExceptions

public abstract java.lang.Class<? extends java.lang.Throwable>[] nonCachedExceptions
Default:
{}