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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
appCacheService
-
-
Constructor Details
-
ApplicationCacheLifecycleManager
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<ContextEvent>
-
supportsAsyncExecution
public boolean supportsAsyncExecution()- Specified by:
supportsAsyncExecutionin interfaceorg.springframework.context.ApplicationListener<ContextEvent>
-