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.ManagedSession 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)Create support.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(io.dropwizard.jetty.MutableServletContextHandler environment, java.util.EventListener listener)Add listener for delayed registration.voidstart()voidstop()
-
-
-
Method Detail
-
add
public void add(io.dropwizard.jetty.MutableServletContextHandler environment, java.util.EventListener listener)Add listener for delayed registration.- Parameters:
environment- servlet environmentlistener- listener
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfaceio.dropwizard.lifecycle.Managed- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed- Throws:
java.lang.Exception
-
-