@ProviderType public static interface ListenerHook.ListenerInfo
|Modifier and Type||Method and Description|
Return the context of the bundle which added the listener.
Return the filter string with which the listener was added.
Returns the hash code for this
Return the state of the listener for this addition and removal life cycle.
nullif the listener was added without a filter.
falseindicating the listener has been added but has not been removed. After the listener has been removed, this method must always return
There is an extremely rare case in which removed notification to
ListenerHooks can be made before added notification if two
threads are racing to add and remove the same service listener.
ListenerHooks 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
falseif the listener has not been removed,
boolean equals(java.lang.Object obj)
ListenerInfos 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
ListenerInfowhich is not equal to this
obj- The object to compare against this
trueif the other object is a
ListenerInfoobject and both objects refer to the same listener for a given addition and removal life cycle.
Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0