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 StringCONTEXT_PARAM_NAMEprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description HalRelationCacheBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureCache(Cache cache, String property, Object value)protected voidconfigureCache(Cache cache, Map<String,Object> cacheConfiguration)voidconfigureCaches(String contextParameter)voidconfigureCaches(HalRelationCacheConfiguration configuration)voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)protected CachecreateCache(Class<? extends Cache> cacheClass, Map<String,Object> cacheConfiguration)protected CachecreateCacheInstance(Class<? extends Cache> cacheClass)protected voidregisterCache(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:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin 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)
-
-