public class FeatureChangeNotifier extends Object
Feature
s.
The listeners have to subscribe via the subscribe(FeatureChangeSubscriber)
method and will be notified of
every call to the static notifyFeatureChange(FeatureState)
method. This method, on the other hand, has to be
called whenever a feature is activated or deactivated.
Constructor and Description |
---|
FeatureChangeNotifier() |
Modifier and Type | Method and Description |
---|---|
static void |
subscribe(FeatureChangeSubscriber subscriber)
Adds a subscriber to the list of listeners to be notified in case of a change.
|
static void |
unsubscribe(FeatureChangeSubscriber subscriber)
Removes a subscriber from the list of listeners to be notified in case of a change.
|
public static void subscribe(@Nonnull FeatureChangeSubscriber subscriber)
subscriber
- The subscriber to add.public static void unsubscribe(@Nonnull FeatureChangeSubscriber subscriber)
subscriber
- The subscriber to remove.Copyright © 2021 SAP SE. All rights reserved.