Class MapperLocatorDelegate

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

    public class MapperLocatorDelegate
    extends java.lang.Object
    implements javax.servlet.ServletContextListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String ATTRIBUTE  
      private static java.util.Map<java.lang.ClassLoader,​java.util.function.Supplier<org.apache.johnzon.mapper.Mapper>> MAPPER_BY_LOADER  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contextDestroyed​(javax.servlet.ServletContextEvent servletContextEvent)  
      void contextInitialized​(javax.servlet.ServletContextEvent servletContextEvent)  
      static org.apache.johnzon.mapper.Mapper locate()  
      private static org.apache.johnzon.mapper.Mapper newMapper()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAPPER_BY_LOADER

        private static final java.util.Map<java.lang.ClassLoader,​java.util.function.Supplier<org.apache.johnzon.mapper.Mapper>> MAPPER_BY_LOADER
      • ATTRIBUTE

        private static final java.lang.String ATTRIBUTE
    • Constructor Detail

      • MapperLocatorDelegate

        public MapperLocatorDelegate()
    • Method Detail

      • contextInitialized

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

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

        public static org.apache.johnzon.mapper.Mapper locate()
      • newMapper

        private static org.apache.johnzon.mapper.Mapper newMapper()