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 TypeMethodDescriptionvoidprotected DictionaryRegistrybuildCache(String tenantId) voidvoidsetDictionaryDAO(DictionaryDAOImpl dictionaryDAO) voidsetTenantService(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:
buildCachein 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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractAsynchronouslyRefreshedCache<DictionaryRegistry>- Throws:
Exception
-