Package org.openhab.core.items
Interface RegistryHook<E extends Identifiable<?>>
public interface RegistryHook<E extends Identifiable<?>>
A listener to be informed before entities are added respectively after they are removed.
- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterRemoving
(E element) Notifies the listener that an element was removed from the registry.void
beforeAdding
(E element) Notifies the listener that an element is going to be added to the registry.
-
Method Details
-
beforeAdding
Notifies the listener that an element is going to be added to the registry.- Parameters:
element
- the element to be added
-
afterRemoving
Notifies the listener that an element was removed from the registry.- Parameters:
element
- the element that was removed
-