Class ListenerHolder

  • All Implemented Interfaces:
    Dumpable, LifeCycle

    public class ListenerHolder
    extends BaseHolder<java.util.EventListener>
    ListenerHolder Specialization of BaseHolder for servlet listeners. This allows us to record where the listener originated - web.xml, annotation, api etc.
    • Constructor Detail

      • ListenerHolder

        public ListenerHolder()
      • ListenerHolder

        public ListenerHolder​(Source source)
      • ListenerHolder

        public ListenerHolder​(java.lang.Class<? extends java.util.EventListener> listenerClass)
    • Method Detail

      • getListener

        public java.util.EventListener getListener()
      • setListener

        public void setListener​(java.util.EventListener listener)
        Set an explicit instance. In this case, just like ServletHolder and FilterHolder, the listener will not be introspected for annotations like Resource etc.
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Overrides:
        doStart in class BaseHolder<java.util.EventListener>
        Throws:
        java.lang.Exception
      • doStop

        public void doStop()
                    throws java.lang.Exception
        Overrides:
        doStop in class BaseHolder<java.util.EventListener>
        Throws:
        java.lang.Exception