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.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, java.lang.String property, java.lang.Object value)protected voidconfigureCache(Cache cache, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)voidconfigureCaches(java.lang.String contextParameter)voidconfigureCaches(HalRelationCacheConfiguration configuration)voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)protected CachecreateCache(java.lang.Class<? extends Cache> cacheClass, java.util.Map<java.lang.String,java.lang.Object> cacheConfiguration)protected CachecreateCacheInstance(java.lang.Class<? extends Cache> cacheClass)protected voidregisterCache(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:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin 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)
-
-