org.onebusaway.container.cache
Class CacheableAnnotationInterceptor

java.lang.Object
  extended by org.onebusaway.container.cache.CacheableMethodManager
      extended by org.onebusaway.container.cache.CacheableAnnotationInterceptor

public class CacheableAnnotationInterceptor
extends CacheableMethodManager

Implements an Aspect aware interceptor that intercepts calls to methods annotated with Cacheable and returns a cached result when available or calls the underlying method when not.

Author:
bdferris
See Also:
Cacheable

Field Summary
 
Fields inherited from class org.onebusaway.container.cache.CacheableMethodManager
_cacheableMethodKeyFactoryManager
 
Constructor Summary
CacheableAnnotationInterceptor()
           
 
Method Summary
 Object doBasicProfiling(org.aspectj.lang.ProceedingJoinPoint pjp)
           
 
Methods inherited from class org.onebusaway.container.cache.CacheableMethodManager
createCache, evaluate, getCacheName, getKeyFactory, setCacheableMethodKeyFactoryManager, setCacheManager, setCacheNamePrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheableAnnotationInterceptor

public CacheableAnnotationInterceptor()
Method Detail

doBasicProfiling

public Object doBasicProfiling(org.aspectj.lang.ProceedingJoinPoint pjp)
                        throws Throwable
Throws:
Throwable


Copyright © 2012 OneBusAway. All Rights Reserved.