Class SessionListenersSupport
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.installer.feature.web.listener.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
-
-
Constructor Summary
Constructors Constructor Description SessionListenersSupport(boolean failWithoutSession)
-
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()
-
-
-
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 interfaceio.dropwizard.lifecycle.Managed
- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception
- Specified by:
stop
in interfaceio.dropwizard.lifecycle.Managed
- Throws:
java.lang.Exception
-
-