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 Details

    • wrapEventListener

      EventListener wrapEventListener(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)