Class HalRelationCacheBootstrap
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheBootstrap
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ServletContextListener
public class HalRelationCacheBootstrap extends java.lang.Object implements javax.servlet.ServletContextListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTEXT_PARAM_NAME
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description HalRelationCacheBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureCache(Cache cache, java.lang.String property, java.lang.Object value)
protected void
configureCache(Cache cache, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)
void
configureCaches(java.lang.String contextParameter)
void
configureCaches(HalRelationCacheConfiguration configuration)
void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
protected Cache
createCache(java.lang.Class<? extends Cache> cacheClass, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)
protected Cache
createCacheInstance(java.lang.Class<? extends Cache> cacheClass)
protected void
registerCache(java.lang.Class<?> halResourceClass, Cache cache)
-
-
-
Field Detail
-
CONTEXT_PARAM_NAME
public static final java.lang.String CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
configureCaches
public void configureCaches(java.lang.String contextParameter)
-
configureCaches
public void configureCaches(HalRelationCacheConfiguration configuration)
-
createCache
protected Cache createCache(java.lang.Class<? extends Cache> cacheClass, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)
-
configureCache
protected void configureCache(Cache cache, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)
-
createCacheInstance
protected Cache createCacheInstance(java.lang.Class<? extends Cache> cacheClass)
-
configureCache
protected void configureCache(Cache cache, java.lang.String property, java.lang.Object value)
-
registerCache
protected void registerCache(java.lang.Class<?> halResourceClass, Cache cache)
-
-