package io.undertow.servlet.api;

import javax.servlet.Filter;
import javax.servlet.Servlet;
import javax.servlet.ServletException;

/**
 * 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
 */
public interface LifecycleInterceptor {

    void init(ServletInfo servletInfo, Servlet servlet, LifecycleContext context);

    void init(FilterInfo filterInfo, Filter filter,  LifecycleContext context);

    void destroy(ServletInfo servletInfo, Servlet servlet,  LifecycleContext context);

    void destroy(FilterInfo filterInfo, Filter filter, LifecycleContext context);

    public interface LifecycleContext {
        void proceed() throws ServletException;
    }
}


@@ -536,32 +536,56 @@
 Context context)
+ throws ServletException
 ;%0A%0A    void init
@@ -641,32 +641,56 @@
 Context context)
+ throws ServletException
 ;%0A%0A    void dest
@@ -757,24 +757,48 @@
 ext context)
+ throws ServletException
 ;%0A%0A    void 
@@ -868,16 +868,40 @@
 context)
+ throws ServletException
 ;%0A%0A    p

Add exception to method signature