Package org.openhab.core.common.registry
Interface ProviderChangeListener<E>
- Type Parameters:
E- type of the element from the provider
- All Known Implementing Classes:
AbstractLinkRegistry,AbstractRegistry,ItemChannelLinkRegistry
@NonNullByDefault
public interface ProviderChangeListener<@NonNull E>
ProviderChangeListener can be added to Provider services, to
listen for changes. The AbstractRegistry implements a ProviderChangeListener and subscribes itself to
every added Provider.- Author:
- Dennis Nobel - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the listener that a single element has been added.voidNotifies the listener that a single element has been removed.voidNotifies the listener that a single element has been updated.
-
Method Details
-
added
Notifies the listener that a single element has been added.- Parameters:
provider- the provider that provides the elementelement- the element that has been added
-
removed
Notifies the listener that a single element has been removed.- Parameters:
provider- the provider that provides the elementelement- the element that has been removed
-
updated
Notifies the listener that a single element has been updated.- Parameters:
provider- the provider that provides the elementelement- the element that has been updated
-