Class CacheLookupUtil

  • All Implemented Interfaces:
    org.jsr107.ri.annotations.CacheContextSource<MethodInvocation>

    public class CacheLookupUtil
    extends org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
    Adapted to Tapestry-IoC from the Guice implementation in the reference implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheLookupUtil​(ObjectLocator objectLocator, javax.cache.annotation.CacheKeyGenerator defaultCacheKeyGenerator, javax.cache.annotation.CacheResolverFactory defaultCacheResolverFactory)
      Single constructor of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends > > staticCacheInvocationContext, MethodInvocation invocation)  
      protected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends > > staticCacheKeyInvocationContext, MethodInvocation invocation)  
      protected javax.cache.annotation.CacheKeyGenerator getDefaultCacheKeyGenerator()  
      protected javax.cache.annotation.CacheResolverFactory getDefaultCacheResolverFactory()  
      protected getMethod​(MethodInvocation invocation)  
      protected <T> T <T> type)  
      protected <?> 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
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Constructor Detail

      • CacheLookupUtil

        public 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

      • createCacheKeyInvocationContextImpl

        protected org.jsr107.ri.annotations.InternalCacheKeyInvocationContext<? extends > > staticCacheKeyInvocationContext,
                                                                                                                                        MethodInvocation invocation)
        Specified by:
        createCacheKeyInvocationContextImpl in class org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
      • createCacheInvocationContextImpl

        protected org.jsr107.ri.annotations.InternalCacheInvocationContext<? extends > > staticCacheInvocationContext,
                                                                                                                                  MethodInvocation invocation)
        Specified by:
        createCacheInvocationContextImpl in class org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
      • getObjectByType

        protected <T> T <T> type)
        Specified by:
        getObjectByType in class org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
      • getDefaultCacheKeyGenerator

        protected javax.cache.annotation.CacheKeyGenerator getDefaultCacheKeyGenerator()
        Specified by:
        getDefaultCacheKeyGenerator in class org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>
      • getDefaultCacheResolverFactory

        protected javax.cache.annotation.CacheResolverFactory getDefaultCacheResolverFactory()
        Specified by:
        getDefaultCacheResolverFactory in class org.jsr107.ri.annotations.AbstractCacheLookupUtil<MethodInvocation>