Package org.apache.jackrabbit.jcr2spi
Interface ItemLifeCycleListener
-
- All Known Subinterfaces:
ItemCache
- All Known Implementing Classes:
ItemCacheImpl
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(Item item)
Called when anItem
instance has been created.void
itemDestroyed(Item item)
Called when anItemImpl
instance has been destroyed (i.e.void
itemUpdated(Item item, boolean modified)
Called when anItem
instance has been refreshed.
-
-
-
Method Detail
-
itemCreated
void itemCreated(Item item)
Called when anItem
instance has been created.- Parameters:
item
- the instance which has been created
-
itemUpdated
void itemUpdated(Item item, boolean modified)
Called when anItem
instance has been refreshed. Ifmodified
istrue
, the refresh included some modification.- Parameters:
item
- the instance which has been refreshed
-
itemDestroyed
void itemDestroyed(Item 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:
item
- the instance which has been destroyed
-
-