Interface ItemRegistryChangeListener


  • public interface ItemRegistryChangeListener
    This is a listener interface which should be implemented where ever the item registry is used in order to be notified of any dynamic changes in the provided items.
    Author:
    Kai Kreuzer - Initial contribution
    • Method Detail

      • allItemsChanged

        void allItemsChanged​(Collection<String> oldItemNames)
        Notifies the listener that all items in the registry have changed and thus should be reloaded.
        Parameters:
        oldItemNames - a collection of all previous item names, so that references can be removed
      • itemAdded

        void itemAdded​(Item item)
        Notifies the listener that a single item has been added
        Parameters:
        item - the item that has been added
      • itemRemoved

        void itemRemoved​(Item item)
        Notifies the listener that a single item has been removed
        Parameters:
        item - the item that has been removed