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 Summary
Fields Modifier and Type Field Description protected int
useCount
-
Constructor Summary
Constructors Constructor Description ListenerHandler(long contextServiceId, ExtServletContext context, ListenerInfo listenerInfo, org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ListenerHandler other)
boolean
destroy()
boolean
dispose()
boolean
equals(Object obj)
ExtServletContext
getContext()
long
getContextServiceId()
EventListener
getListener()
ListenerInfo
getListenerInfo()
int
hashCode()
int
init()
Initialize the object
-
-
-
Constructor Detail
-
ListenerHandler
public ListenerHandler(long contextServiceId, ExtServletContext context, ListenerInfo listenerInfo, org.osgi.framework.BundleContext bundleContext)
-
-
Method Detail
-
compareTo
public int compareTo(ListenerHandler other)
- Specified by:
compareTo
in interfaceComparable<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.
-
-