Class SessionListenersSupport

  • All Implemented Interfaces:
    io.dropwizard.lifecycle.Managed

    public class SessionListenersSupport
    extends java.lang.Object
    implements io.dropwizard.lifecycle.Managed
    Session listeners can't be registered immediately in installer, because it will execute before application run method and so session will not be configured. Class used as session listeners holder and register them later using managed lifecycle.
    Since:
    08.08.2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(io.dropwizard.jetty.MutableServletContextHandler environment, java.util.EventListener listener)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

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

      • SessionListenersSupport

        public SessionListenersSupport​(boolean failWithoutSession)
    • Method Detail

      • add

        public void add​(io.dropwizard.jetty.MutableServletContextHandler environment,
                        java.util.EventListener listener)
      • start

        public void start()
                   throws java.lang.Exception
        Specified by:
        start in interface io.dropwizard.lifecycle.Managed
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Specified by:
        stop in interface io.dropwizard.lifecycle.Managed
        Throws:
        java.lang.Exception