|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.cache.CacheLoader
public class CacheLoader
This object is responsible for loading the eternal caches of Join application.
Once data are loaded, it exposes cached data to web tier registering a EternalCacheAccessor
within application context and ServletContext
.
Because this registration is done during application context creation, we cannot
use the registration method provided by the ContainerContextHandler
(application context is still null) ... We have to do this in a Spring specific way
by implementing BeanFactoryAware
and using the registration method
of the current BeanFactory
.
Field Summary | |
---|---|
protected ArtifactManager |
artifactManager
The ArtifactManager for getting data to put in caches |
protected CacheManager |
cacheManager
The CacheManager referencing caches |
protected PermissionManager |
permissionManager
The PermissionManager for getting data to put in caches |
protected IntegrationProcessManager |
processManager
The IntegrationProcessManager for gettnig data to put in caches |
Constructor Summary | |
---|---|
CacheLoader()
Creates a new instance of CacheLoader |
Method Summary | |
---|---|
EternalCacheAccessor |
getEternalCacheAccesor()
|
boolean |
hasLoadedCaches()
|
void |
loadCaches()
Load the eternal caches of Join application. |
protected void |
loadDeliverableTypesCache()
Load the eternal cache containing DeliverableType s |
protected void |
loadReleasesCache()
Load the eternal cache containing Release s |
protected void |
loadRolesCache()
Load the eternal cache containing Role s |
protected void |
loadStepsCache()
Load the eternal cache containing Step s |
protected void |
registerCacheAccessor()
Simply build an EternalCacheAccessor instance and register
it within ServletContext using the EternalCacheAccessor.CONTEXT_KEY . |
void |
setArtifactManager(ArtifactManager artifactManager)
|
void |
setCacheManager(CacheManager cacheManager)
|
void |
setIntegrationProcessManager(IntegrationProcessManager processManager)
|
void |
setPermissionManager(PermissionManager permissionManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CacheManager cacheManager
protected ArtifactManager artifactManager
protected PermissionManager permissionManager
protected IntegrationProcessManager processManager
Constructor Detail |
---|
public CacheLoader()
Method Detail |
---|
public void setCacheManager(CacheManager cacheManager)
cacheManager
- The cache manager instance to use for getting caches to loadpublic void setArtifactManager(ArtifactManager artifactManager)
artifactManager
- The artifact manager instance to use for getting datapublic void setPermissionManager(PermissionManager permissionManager)
permissionManager
- The permission manager instance to use for getting datapublic void setIntegrationProcessManager(IntegrationProcessManager processManager)
processManager
- The integration process manager instance to use for getting datapublic boolean hasLoadedCaches()
public EternalCacheAccessor getEternalCacheAccesor()
public void loadCaches() throws BootstrapException
EternalCacheAccessor
within ServletContext
. CacheManager
instance has been initialized too (ex: by Spring Framework...)
BootstrapException
- if one of the eternal caches is not available
of if an infrastructure exception occurs during data retrieval.protected void loadStepsCache() throws CacheException, BootstrapException
Step
s
CacheException
- if step cache cannot be filled with retrieved steps
BootstrapException
- if cache cannot be retrieved through its managerprotected void loadRolesCache() throws CacheException, BootstrapException
Role
s
CacheException
- if role cache cannot be filled with retrieved roles
BootstrapException
- if cache cannot be retrieved through its managerprotected void loadReleasesCache() throws CacheException, BootstrapException
Release
s
CacheException
- if cache cannot be filled with retrieved releases
BootstrapException
- if cache cannot be retrieved through its managerprotected void loadDeliverableTypesCache() throws CacheException, BootstrapException
DeliverableType
s
CacheException
- if cache cannot be filled with retrieved types
BootstrapException
- if cache cannot be retrieves through its managerprotected void registerCacheAccessor()
EternalCacheAccessor
instance and register
it within ServletContext using the EternalCacheAccessor.CONTEXT_KEY
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |