public class HalRelationCacheBootstrap extends Object implements javax.servlet.ServletContextListener
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PARAM_NAME |
protected org.codehaus.jackson.map.ObjectMapper |
objectMapper |
Constructor and Description |
---|
HalRelationCacheBootstrap() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureCache(Cache cache,
Map<String,Object> cacheConfiguration) |
protected void |
configureCache(Cache cache,
String property,
Object value) |
void |
configureCaches(HalRelationCacheConfiguration configuration) |
void |
configureCaches(String contextParameter) |
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) |
public static final String CONTEXT_PARAM_NAME
protected org.codehaus.jackson.map.ObjectMapper objectMapper
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
public void configureCaches(String contextParameter)
public void configureCaches(HalRelationCacheConfiguration configuration)
protected Cache createCache(Class<? extends Cache> cacheClass, Map<String,Object> cacheConfiguration)
Copyright © 2018. All rights reserved.