Class IgnoreIfMissing

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.ServletContextListener
    Direct Known Subclasses:
    JsonbLocator, MapperLocator

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

      Fields 
      Modifier and Type Field Description
      private java.util.function.Supplier<javax.servlet.ServletContextListener> delegate  
      private boolean skipped  
    • Constructor Summary

      Constructors 
      Constructor Description
      IgnoreIfMissing​(java.util.function.Supplier<javax.servlet.ServletContextListener> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contextDestroyed​(javax.servlet.ServletContextEvent sce)  
      void contextInitialized​(javax.servlet.ServletContextEvent sce)  
      • Methods inherited from class java.lang.Object

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

      • delegate

        private final java.util.function.Supplier<javax.servlet.ServletContextListener> delegate
      • skipped

        private boolean skipped
    • Constructor Detail

      • IgnoreIfMissing

        public IgnoreIfMissing​(java.util.function.Supplier<javax.servlet.ServletContextListener> delegate)
    • 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