Package org.alfresco.repo.dictionary
Class CompiledModelsCache
java.lang.Object
org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
org.alfresco.repo.dictionary.CompiledModelsCache
- All Implemented Interfaces:
Callable<Void>
,AsynchronouslyRefreshedCache<DictionaryRegistry>
,RefreshableCache<DictionaryRegistry>
,RefreshableCacheListener
,TransactionListener
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
Asynchronously refreshed cache for dictionary models.
-
Field Summary
Fields inherited from class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache
live, liveLock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected DictionaryRegistry
buildCache
(String tenantId) void
void
setDictionaryDAO
(DictionaryDAOImpl dictionaryDAO) void
setTenantService
(TenantService tenantService) Methods inherited from class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache
afterCommit, afterRollback, beforeCommit, beforeCompletion, broadcastEvent, call, forceInChangesForThisUncommittedTransaction, get, getCacheId, init, isUpToDate, onRefreshableCacheEvent, refresh, register, setBeanName, setRegistry, setThreadPoolExecutor, toString, waitForBuild
-
Constructor Details
-
CompiledModelsCache
public CompiledModelsCache()
-
-
Method Details
-
buildCache
- Specified by:
buildCache
in classAbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
-
remove
- Parameters:
tenantId
- the tenantId of cache that will be removed from live cache
-
setDictionaryDAO
- Parameters:
dictionaryDAO
- the dictionaryDAOImpl to set
-
setTenantService
- Parameters:
tenantService
- the tenantService to set
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classAbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
- Throws:
Exception
-