Class HalRelationCacheBootstrap
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheBootstrap
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class HalRelationCacheBootstrap extends Object implements javax.servlet.ServletContextListener
-
-
Field Summary
Fields Modifier and Type Field Description static 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, String property, Object value)
protected void
configureCache(Cache cache, Map<String,Object> cacheConfiguration)
void
configureCaches(String contextParameter)
void
configureCaches(HalRelationCacheConfiguration configuration)
void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
protected Cache
createCache(Class<? extends Cache> cacheClass, Map<String,Object> cacheConfiguration)
protected Cache
createCacheInstance(Class<? extends Cache> cacheClass)
protected void
registerCache(Class<?> halResourceClass, Cache cache)
-
-
-
Field Detail
-
CONTEXT_PARAM_NAME
public static final 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(String contextParameter)
-
configureCaches
public void configureCaches(HalRelationCacheConfiguration configuration)
-
createCache
protected Cache createCache(Class<? extends Cache> cacheClass, Map<String,Object> cacheConfiguration)
-
-