Class HalRelationCacheBootstrap
java.lang.Object
org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheBootstrap
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
public class HalRelationCacheBootstrap
extends Object
implements jakarta.servlet.ServletContextListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureCache
(Cache cache, String property, Object value) protected void
configureCache
(Cache cache, Map<String, Object> cacheConfiguration) void
configureCaches
(String contextParameter) void
configureCaches
(HalRelationCacheConfiguration configuration) void
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) void
contextInitialized
(jakarta.servlet.ServletContextEvent sce) protected Cache
protected Cache
createCacheInstance
(Class<? extends Cache> cacheClass) protected void
registerCache
(Class<?> halResourceClass, Cache cache)
-
Field Details
-
CONTEXT_PARAM_NAME
- See Also:
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
HalRelationCacheBootstrap
public HalRelationCacheBootstrap()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
configureCaches
-
configureCaches
-
createCache
-
configureCache
-
createCacheInstance
-
configureCache
-
registerCache
-