Package org.apache.jackrabbit.core
Interface ItemLifeCycleListener
-
public interface ItemLifeCycleListener
TheItemLifeCycleListener
interface allows an implementing object to be informed about changes on anItem
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
itemCreated(ItemImpl item)
Called when anItemImpl
instance has been created.void
itemDestroyed(ItemId id, ItemImpl item)
Called when anItemImpl
instance has been destroyed (i.e.void
itemInvalidated(ItemId id, ItemImpl item)
Called when anItemImpl
instance has been invalidated (i.e.
-
-
-
Method Detail
-
itemCreated
void itemCreated(ItemImpl item)
Called when anItemImpl
instance has been created.- Parameters:
item
- the instance which has been created
-
itemInvalidated
void itemInvalidated(ItemId id, ItemImpl item)
Called when anItemImpl
instance has been invalidated (i.e. it has been temporarily rendered 'invalid').Note that most
,Item
andNode
methods will throw anProperty
InvalidItemStateException
when called on an 'invalidated' item.- Parameters:
id
- the id of the instance that has been discardeditem
- the instance which has been discarded
-
itemDestroyed
void itemDestroyed(ItemId id, ItemImpl item)
Called when anItemImpl
instance has been destroyed (i.e. it has been permanently rendered 'invalid').Note that most
,Item
andNode
methods will throw anProperty
InvalidItemStateException
when called on a 'destroyed' item.- Parameters:
id
- the id of the instance that has been destroyeditem
- the instance which has been destroyed
-
-