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 intuseCount
-
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 intcompareTo(ListenerHandler other)booleandestroy()booleandispose()booleanequals(Object obj)ExtServletContextgetContext()longgetContextServiceId()EventListenergetListener()ListenerInfogetListenerInfo()inthashCode()intinit()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:
compareToin 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
DTOConstantsotherwise.
-
-