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
public class CompiledModelsCache extends AbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
Asynchronously refreshed cache for dictionary models.
-
-
Field Summary
-
Fields inherited from class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache
live, liveLock
-
-
Constructor Summary
Constructors Constructor Description CompiledModelsCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected DictionaryRegistrybuildCache(String tenantId)voidremove(String tenantId)voidsetDictionaryDAO(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
-
-
-
-
Method Detail
-
buildCache
protected DictionaryRegistry buildCache(String tenantId)
- Specified by:
buildCachein classAbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
-
remove
public void remove(String tenantId)
- Parameters:
tenantId- the tenantId of cache that will be removed from live cache
-
setDictionaryDAO
public void setDictionaryDAO(DictionaryDAOImpl dictionaryDAO)
- Parameters:
dictionaryDAO- the dictionaryDAOImpl to set
-
setTenantService
public void setTenantService(TenantService tenantService)
- Parameters:
tenantService- the tenantService to set
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractAsynchronouslyRefreshedCache<DictionaryRegistry>- Throws:
Exception
-
-