Package io.undertow.servlet.api
Interface LifecycleInterceptor
-
public interface LifecycleInterceptor
Class that is run around invocations of servlet and filter lifecycle methods (init and destroy). Note that this only deals with lifecycle methods that are defined by the servlet spec. @POstConstruct, PreDestroy and Inject methods are not handled.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LifecycleInterceptor.LifecycleContext
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy(FilterInfo filterInfo, jakarta.servlet.Filter filter, LifecycleInterceptor.LifecycleContext context)
void
destroy(ServletInfo servletInfo, jakarta.servlet.Servlet servlet, LifecycleInterceptor.LifecycleContext context)
void
init(FilterInfo filterInfo, jakarta.servlet.Filter filter, LifecycleInterceptor.LifecycleContext context)
void
init(ServletInfo servletInfo, jakarta.servlet.Servlet servlet, LifecycleInterceptor.LifecycleContext context)
-
-
-
Method Detail
-
init
void init(ServletInfo servletInfo, jakarta.servlet.Servlet servlet, LifecycleInterceptor.LifecycleContext context) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
init
void init(FilterInfo filterInfo, jakarta.servlet.Filter filter, LifecycleInterceptor.LifecycleContext context) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
destroy
void destroy(ServletInfo servletInfo, jakarta.servlet.Servlet servlet, LifecycleInterceptor.LifecycleContext context) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
destroy
void destroy(FilterInfo filterInfo, jakarta.servlet.Filter filter, LifecycleInterceptor.LifecycleContext context) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
-