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
orWebAppContext
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.EventListener
wrapEventListener(java.util.EventListener listener)
Optionally wrap the Servlet EventListener.
-
-
-
Method Detail
-
wrapEventListener
java.util.EventListener wrapEventListener(java.util.EventListener listener)
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)
-
-