public interface ItemLifeCycleListener
ItemLifeCycleListener
interface allows an implementing
object to be informed about changes on an Item
instance.Modifier and Type | Method and Description |
---|---|
void |
itemCreated(ItemImpl item)
Called when an
ItemImpl instance has been created. |
void |
itemDestroyed(ItemId id,
ItemImpl item)
Called when an
ItemImpl instance has been destroyed
(i.e. |
void |
itemInvalidated(ItemId id,
ItemImpl item)
Called when an
ItemImpl instance has been invalidated
(i.e. |
void itemCreated(ItemImpl item)
ItemImpl
instance has been created.item
- the instance which has been createdvoid itemInvalidated(ItemId id, ItemImpl item)
ItemImpl
instance has been invalidated
(i.e. it has been temporarily rendered 'invalid').
Note that most
,
Item
and Node
methods will throw an Property
InvalidItemStateException
when called
on an 'invalidated' item.
id
- the id of the instance that has been discardeditem
- the instance which has been discardedvoid itemDestroyed(ItemId id, ItemImpl item)
ItemImpl
instance has been destroyed
(i.e. it has been permanently rendered 'invalid').
Note that most
,
Item
and Node
methods will throw an Property
InvalidItemStateException
when called
on a 'destroyed' item.
id
- the id of the instance that has been destroyeditem
- the instance which has been destroyedCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.