Class ApplicationCacheLifecycleManager

java.lang.Object
org.craftercms.core.util.cache.impl.ApplicationCacheLifecycleManager
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<ContextEvent>

public class ApplicationCacheLifecycleManager extends Object implements org.springframework.context.ApplicationListener<ContextEvent>
Event listener that adds an application cache scope whenever a context is created and removes it when the context is destroyed.
Since:
4.3.1
Author:
avasquez
  • Field Details

  • Constructor Details

    • ApplicationCacheLifecycleManager

      public ApplicationCacheLifecycleManager(CacheService appCacheService)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(ContextEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<ContextEvent>
    • supportsAsyncExecution

      public boolean supportsAsyncExecution()
      Specified by:
      supportsAsyncExecution in interface org.springframework.context.ApplicationListener<ContextEvent>