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 SummaryConstructors Constructor Description CacheLookupUtil(ObjectLocator objectLocator, javax.cache.annotation.CacheKeyGenerator defaultCacheKeyGenerator, javax.cache.annotation.CacheResolverFactory defaultCacheResolverFactory)Single constructor of this class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends java.lang.annotation.Annotation>createCacheInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheInvocationContext<? extends java.lang.annotation.Annotation> staticCacheInvocationContext, MethodInvocation invocation)protected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends java.lang.annotation.Annotation>createCacheKeyInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheKeyInvocationContext<? extends java.lang.annotation.Annotation> staticCacheKeyInvocationContext, MethodInvocation invocation)protected javax.cache.annotation.CacheKeyGeneratorgetDefaultCacheKeyGenerator()protected javax.cache.annotation.CacheResolverFactorygetDefaultCacheResolverFactory()protected java.lang.reflect.MethodgetMethod(MethodInvocation invocation)protected <T> TgetObjectByType(java.lang.Class<T> type)protected java.lang.Class<?>getTargetClass(MethodInvocation invocation)- 
Methods inherited from class org.jsr107.ri.annotations.AbstractCacheLookupUtilcreateCacheMethodDetails, createCachePutMethodDetails, createCacheRemoveAllMethodDetails, createCacheRemoveEntryMethodDetails, createCacheResultMethodDetails, getAnnotation, getCacheInvocationContext, getCacheKeyGenerator, getCacheKeyInvocationContext, getCacheResolverFactory, getMethodAnnotations, getMethodDetails, getParameterDetails, resolveCacheName
 
- 
 
- 
- 
- 
Constructor Detail- 
CacheLookupUtilpublic CacheLookupUtil(ObjectLocator objectLocator, javax.cache.annotation.CacheKeyGenerator defaultCacheKeyGenerator, javax.cache.annotation.CacheResolverFactory defaultCacheResolverFactory) Single constructor of this class.- Parameters:
- defaultCacheKeyGenerator- the default CacheKeyGenerator
- defaultCacheResolverFactory- the default CacheResolverFactory
 
 
- 
 - 
Method Detail- 
createCacheKeyInvocationContextImplprotected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends java.lang.annotation.Annotation> createCacheKeyInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheKeyInvocationContext<? extends java.lang.annotation.Annotation> staticCacheKeyInvocationContext, MethodInvocation invocation) - Specified by:
- createCacheKeyInvocationContextImplin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
createCacheInvocationContextImplprotected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends java.lang.annotation.Annotation> createCacheInvocationContextImpl(org.jsr107.ri.annotations.StaticCacheInvocationContext<? extends java.lang.annotation.Annotation> staticCacheInvocationContext, MethodInvocation invocation) - Specified by:
- createCacheInvocationContextImplin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
getTargetClassprotected java.lang.Class<?> getTargetClass(MethodInvocation invocation) - Specified by:
- getTargetClassin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
getMethodprotected java.lang.reflect.Method getMethod(MethodInvocation invocation) - Specified by:
- getMethodin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
getObjectByTypeprotected <T> T getObjectByType(java.lang.Class<T> type) - Specified by:
- getObjectByTypein class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
getDefaultCacheKeyGeneratorprotected javax.cache.annotation.CacheKeyGenerator getDefaultCacheKeyGenerator() - Specified by:
- getDefaultCacheKeyGeneratorin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 - 
getDefaultCacheResolverFactoryprotected javax.cache.annotation.CacheResolverFactory getDefaultCacheResolverFactory() - Specified by:
- getDefaultCacheResolverFactoryin class- org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
 
 
- 
 
-