public static interface ListenerHook.ListenerInfo
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this
ListenerInfo to another
ListenerInfo . |
BundleContext |
getBundleContext()
Return the context of the bundle which added the listener.
|
String |
getFilter()
Return the filter string with which the listener was added.
|
int |
hashCode()
Returns the hash code for this
ListenerInfo . |
boolean |
isRemoved()
Return the state of the listener for this addition and removal life
cycle.
|
BundleContext getBundleContext()
String getFilter()
null
if the listener was added without a
filter.boolean isRemoved()
false
indicating the listener has been added but has not been removed.
After the listener has been removed, this method must always return
true
.
There is an extremely rare case in which removed notification to
ListenerHook
s can be made before added notification if two
threads are racing to add and remove the same service listener.
Because ListenerHook
s are called synchronously during service
listener addition and removal, the Framework cannot guarantee
in-order delivery of added and removed notification for a given
service listener. This method can be used to detect this rare
occurrence.
false
if the listener has not been been removed,
true
otherwise.boolean equals(Object obj)
ListenerInfo
to another
ListenerInfo
. Two ListenerInfo
s are equals
if they refer to the same listener for a given addition and removal
life cycle. If the same listener is added again, it must have a
different ListenerInfo
which is not equal to this
ListenerInfo
.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.