Interface ItemLifeCycleListener


  • public interface ItemLifeCycleListener
    The ItemLifeCycleListener interface allows an implementing object to be informed about changes on an Item instance.
    • Method Detail

      • itemCreated

        void itemCreated​(ItemImpl item)
        Called when an ItemImpl instance has been created.
        Parameters:
        item - the instance which has been created
      • itemInvalidated

        void itemInvalidated​(ItemId id,
                             ItemImpl item)
        Called when an ItemImpl instance has been invalidated (i.e. it has been temporarily rendered 'invalid').

        Note that most Item, Node and Property methods will throw an InvalidItemStateException when called on an 'invalidated' item.

        Parameters:
        id - the id of the instance that has been discarded
        item - the instance which has been discarded
      • itemDestroyed

        void itemDestroyed​(ItemId id,
                           ItemImpl item)
        Called when an ItemImpl instance has been destroyed (i.e. it has been permanently rendered 'invalid').

        Note that most Item, Node and Property methods will throw an InvalidItemStateException when called on a 'destroyed' item.

        Parameters:
        id - the id of the instance that has been destroyed
        item - the instance which has been destroyed