Class HalRelationCacheBootstrap

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.ServletContextListener

    public class HalRelationCacheBootstrap
    extends java.lang.Object
    implements javax.servlet.ServletContextListener
    • 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
    • Constructor Detail

      • HalRelationCacheBootstrap

        public HalRelationCacheBootstrap()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
      • configureCaches

        public void configureCaches​(java.lang.String contextParameter)
      • 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)