Class ListenerHandler

java.lang.Object
org.apache.felix.http.base.internal.handler.ListenerHandler
All Implemented Interfaces:
Comparable<ListenerHandler>

public class ListenerHandler extends Object implements Comparable<ListenerHandler>
The listener handler handles the initialization and destruction of listener objects.
  • Field Details

    • useCount

      protected volatile int useCount
  • Constructor Details

    • ListenerHandler

      public ListenerHandler(long contextServiceId, ExtServletContext context, ListenerInfo listenerInfo, org.osgi.framework.BundleContext bundleContext)
  • Method Details

    • compareTo

      public int compareTo(ListenerHandler other)
      Specified by:
      compareTo in interface Comparable<ListenerHandler>
    • getContext

      public ExtServletContext getContext()
    • getContextServiceId

      public long getContextServiceId()
    • getListener

      public EventListener getListener()
    • getListenerInfo

      public ListenerInfo getListenerInfo()
    • destroy

      public boolean destroy()
    • dispose

      public boolean dispose()
    • init

      public int init()
      Initialize the object
      Returns:
      {code -1} on success, a failure reason according to DTOConstants otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object