Package org.openhab.core.common.registry
Interface RegistryChangeListener<E>
- Type Parameters:
E- type of the element in the registry
- All Known Subinterfaces:
ItemRegistryChangeListener,ThingRegistryChangeListener
- All Known Implementing Classes:
ItemChannelLinkRegistry,RegistryChangedRunnableListener,ScriptItemRefresher,ScriptTransformationService
@NonNullByDefault
public interface RegistryChangeListener<E>
RegistryChangeListener can be added to Registry services, to
listen for changes.- 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:
element- the element that has been added
-
removed
Notifies the listener that a single element has been removed.- Parameters:
element- the element that has been removed
-
updated
Notifies the listener that a single element has been updated.- Parameters:
oldElement- the element that has been updatedelement- the new element
-