|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.ehcache.annotations.resolver.DefaultCacheResolverFactory
public class DefaultCacheResolverFactory
Cache resolver that simply looks up the specified caches by name and returns SingletonCacheableCacheResolver or
SingletonTriggersRemoveCacheResolver instances.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultCacheResolverFactory.SelfPopulatingCacheTracker
|
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger available to subclasses. |
| Constructor Summary | |
|---|---|
DefaultCacheResolverFactory(net.sf.ehcache.CacheManager cacheManager)
|
|
| Method Summary | |
|---|---|
protected DefaultCacheResolverFactory.SelfPopulatingCacheTracker |
createSelfPopulatingCache(net.sf.ehcache.Ehcache cache,
int timeout,
DecoratedCacheType type,
long refreshinterval)
Create a new SelfPopulatingCache and corresponding CacheEntryFactory |
protected DefaultCacheResolverFactory.SelfPopulatingCacheTracker |
createSelfPopulatingCacheInternal(net.sf.ehcache.Ehcache cache,
int timeout,
DecoratedCacheType type,
long refreshinterval)
Creates or retrieves a SelfPopulatingCacheTracker for the specified cache depending on the configured SelfPopulatingCacheScope |
protected net.sf.ehcache.Ehcache |
getCache(java.lang.String cacheName)
|
protected net.sf.ehcache.CacheManager |
getCacheManager()
|
CacheableCacheResolver |
getCacheResolver(Cacheable cacheable,
java.lang.reflect.Method method)
Get a resolver for the specified annotation and annotated method |
TriggersRemoveCacheResolver |
getCacheResolver(TriggersRemove triggersRemove,
java.lang.reflect.Method method)
Get a resolver for the specified annotation and annotated method |
boolean |
isCreateCaches()
|
void |
setCreateCaches(boolean createCaches)
|
void |
setExecutor(org.springframework.scheduling.SchedulingTaskExecutor executor)
|
void |
setScheduler(TaskSchedulerAdapter scheduler)
|
void |
setSelfPopulatingCacheScope(SelfPopulatingCacheScope selfPopulatingCacheScope)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public DefaultCacheResolverFactory(net.sf.ehcache.CacheManager cacheManager)
| Method Detail |
|---|
public void setScheduler(TaskSchedulerAdapter scheduler)
public void setExecutor(org.springframework.scheduling.SchedulingTaskExecutor executor)
public boolean isCreateCaches()
public void setCreateCaches(boolean createCaches)
public void setSelfPopulatingCacheScope(SelfPopulatingCacheScope selfPopulatingCacheScope)
protected net.sf.ehcache.CacheManager getCacheManager()
public CacheableCacheResolver getCacheResolver(Cacheable cacheable,
java.lang.reflect.Method method)
CacheResolverFactory
getCacheResolver in interface CacheResolverFactory
public TriggersRemoveCacheResolver getCacheResolver(TriggersRemove triggersRemove,
java.lang.reflect.Method method)
CacheResolverFactory
getCacheResolver in interface CacheResolverFactoryprotected net.sf.ehcache.Ehcache getCache(java.lang.String cacheName)
protected final DefaultCacheResolverFactory.SelfPopulatingCacheTracker createSelfPopulatingCacheInternal(net.sf.ehcache.Ehcache cache,
int timeout,
DecoratedCacheType type,
long refreshinterval)
SelfPopulatingCacheScope
cache - The cache to create a self populating instance of
protected DefaultCacheResolverFactory.SelfPopulatingCacheTracker createSelfPopulatingCache(net.sf.ehcache.Ehcache cache,
int timeout,
DecoratedCacheType type,
long refreshinterval)
SelfPopulatingCache and corresponding CacheEntryFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||