Class CompiledModelsCache

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Void>, org.alfresco.util.cache.AsynchronouslyRefreshedCache<DictionaryRegistry>, org.alfresco.util.cache.RefreshableCache<DictionaryRegistry>, org.alfresco.util.cache.RefreshableCacheListener, org.alfresco.util.transaction.TransactionListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class CompiledModelsCache
    extends org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
    Asynchronously refreshed cache for dictionary models.
    • Field Summary

      • Fields inherited from class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache

        live, liveLock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected DictionaryRegistry buildCache​(java.lang.String tenantId)  
      void remove​(java.lang.String tenantId)  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CompiledModelsCache

        public CompiledModelsCache()
    • Method Detail

      • buildCache

        protected DictionaryRegistry buildCache​(java.lang.String tenantId)
        Specified by:
        buildCache in class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
      • remove

        public void remove​(java.lang.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 java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache<DictionaryRegistry>
        Throws:
        java.lang.Exception