Package org.eclipse.jetty.servlet
Interface ListenerHolder.WrapFunction
- Enclosing class:
- ListenerHolder
public static interface ListenerHolder.WrapFunction
Experimental Wrapper mechanism for Servlet EventListeners.
Beans in ServletContextHandler
or WebAppContext
that implement this interface
will be called to optionally wrap any newly created Servlet EventListeners before
they are used for the first time.
-
Method Summary
Modifier and TypeMethodDescriptionwrapEventListener
(EventListener listener) Optionally wrap the Servlet EventListener.
-
Method Details
-
wrapEventListener
Optionally wrap the Servlet EventListener.- Parameters:
listener
- the Servlet EventListener being passed in.- Returns:
- the Servlet EventListener (extend from
ListenerHolder.Wrapper
if you do wrap the Servlet EventListener)
-