|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.cache.EternalCacheAccessor
public class EternalCacheAccessor
The goal of cache accessor is to provide an easy access to cached data from web-tier layers. As a convenience, it provides a static key for being registered within a ServletContext or some other application context.
Field Summary | |
---|---|
static java.lang.String |
CONTEXT_KEY
An EternalCacheAccessor instance is registered within the web-tier context using this CONTEXT_KEY |
Constructor Summary | |
---|---|
EternalCacheAccessor(CacheManager cacheManager,
CacheLoader cacheLoader)
Creates a new instance of EternaleCacheAccessor with initiliazed CacheManager
and loaded eternal caches. |
Method Summary | |
---|---|
Cache |
getCache(java.lang.String cacheKey)
Retrieve an arbitrary Cache using its key identifier |
java.util.List |
getCachedDeliverableTypes()
Retrieve all the DeliverableType domain objects present in cache |
java.util.List |
getCachedReleases()
Retrieve all the Release domain objects present in cache |
java.util.List |
getCachedRoles()
Retrieve all the Role domain objects present in cache |
java.util.List |
getCachedSteps()
Retrieve all the Step domain objects present in cache |
CacheManager |
getCacheManager()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTEXT_KEY
Constructor Detail |
---|
public EternalCacheAccessor(CacheManager cacheManager, CacheLoader cacheLoader)
CacheManager
and loaded eternal caches. The instance of CacheLoader
is also passed as a
parameter because cache may have a lazy loading policy. Thus, this accessor will
check for loading to occur.
cacheManager
- The initiliazed manager to access caches fromcacheLoader
- The loader that should have loaded eternal caches.Method Detail |
---|
public CacheManager getCacheManager()
public Cache getCache(java.lang.String cacheKey)
Cache
using its key identifier
cacheKey
- The key of the cache to retrieve
public java.util.List getCachedSteps()
Step
public java.util.List getCachedRoles()
Role
public java.util.List getCachedReleases()
Release
public java.util.List getCachedDeliverableTypes()
DeliverableType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |