Class CacheLookupUtil
java.lang.Object
org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
org.apache.tapestry5.jcache.internal.CacheLookupUtil
- All Implemented Interfaces:
org.jsr107.ri.annotations.CacheContextSource<MethodInvocation>
@Singleton
public class CacheLookupUtil
extends org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
Adapted to Tapestry-IoC from the Guice implementation in the reference implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheLookupUtil
(ObjectLocator objectLocator, javax.cache.annotation.CacheKeyGenerator defaultCacheKeyGenerator, javax.cache.annotation.CacheResolverFactory defaultCacheResolverFactory) Single constructor of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends Annotation>
createCacheInvocationContextImpl
(org.jsr107.ri.annotations.StaticCacheInvocationContext<? extends Annotation> staticCacheInvocationContext, MethodInvocation invocation) protected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends Annotation>
createCacheKeyInvocationContextImpl
(org.jsr107.ri.annotations.StaticCacheKeyInvocationContext<? extends Annotation> staticCacheKeyInvocationContext, MethodInvocation invocation) protected javax.cache.annotation.CacheKeyGenerator
protected javax.cache.annotation.CacheResolverFactory
protected Method
getMethod
(MethodInvocation invocation) protected <T> T
getObjectByType
(Class<T> type) protected Class<?>
getTargetClass
(MethodInvocation invocation) Methods inherited from class org.jsr107.ri.annotations.AbstractCacheLookupUtil
createCacheMethodDetails, createCachePutMethodDetails, createCacheRemoveAllMethodDetails, createCacheRemoveEntryMethodDetails, createCacheResultMethodDetails, getAnnotation, getCacheInvocationContext, getCacheKeyGenerator, getCacheKeyInvocationContext, getCacheResolverFactory, getMethodAnnotations, getMethodDetails, getParameterDetails, resolveCacheName
-
Constructor Details
-
CacheLookupUtil
public CacheLookupUtil(ObjectLocator objectLocator, javax.cache.annotation.CacheKeyGenerator defaultCacheKeyGenerator, javax.cache.annotation.CacheResolverFactory defaultCacheResolverFactory) Single constructor of this class.- Parameters:
defaultCacheKeyGenerator
- the default CacheKeyGeneratordefaultCacheResolverFactory
- the default CacheResolverFactory
-
-
Method Details
-
createCacheKeyInvocationContextImpl
protected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends Annotation> createCacheKeyInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheKeyInvocationContext<? extends Annotation> staticCacheKeyInvocationContext, MethodInvocation invocation) - Specified by:
createCacheKeyInvocationContextImpl
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
createCacheInvocationContextImpl
protected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends Annotation> createCacheInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheInvocationContext<? extends Annotation> staticCacheInvocationContext, MethodInvocation invocation) - Specified by:
createCacheInvocationContextImpl
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
getTargetClass
- Specified by:
getTargetClass
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
getMethod
- Specified by:
getMethod
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
getObjectByType
- Specified by:
getObjectByType
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
getDefaultCacheKeyGenerator
- Specified by:
getDefaultCacheKeyGenerator
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-
getDefaultCacheResolverFactory
- Specified by:
getDefaultCacheResolverFactory
in classorg.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
-