Interface IActivationNotificationProvider
-
- All Known Implementing Classes:
ActivationNotificationProvider,RuleInstance
public interface IActivationNotificationProviderThis interface is used for providing an internal activation notification mechanism. Listeners added to the implemented provider should be notified when an activation change occurs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddActivationNotificationListener(IActivationNotificationListener listener, boolean fireNow)Registers anIActivationNotificationListenerto receive updates on activation appearance and disappearance.booleanremoveActivationNotificationListener(IActivationNotificationListener listener)Unregisters a listener registered byaddActivationNotificationListener(IActivationNotificationListener, boolean).
-
-
-
Method Detail
-
addActivationNotificationListener
boolean addActivationNotificationListener(IActivationNotificationListener listener, boolean fireNow)
Registers anIActivationNotificationListenerto receive updates on activation appearance and disappearance.The listener can be unregistered via
removeActivationNotificationListener(IActivationNotificationListener).- Parameters:
fireNow- if true, listener will be immediately invoked on all current activations as a one-time effect.listener- the listener that will be notified of each new activation that appears or disappears, starting from now.
-
removeActivationNotificationListener
boolean removeActivationNotificationListener(IActivationNotificationListener listener)
Unregisters a listener registered byaddActivationNotificationListener(IActivationNotificationListener, boolean).- Parameters:
listener- the listener that will no longer be notified.
-
-