Package org.apache.jackrabbit.jcr2spi
Interface ItemLifeCycleListener
-
- All Known Subinterfaces:
ItemCache
- All Known Implementing Classes:
ItemCacheImpl
public interface ItemLifeCycleListenerTheItemLifeCycleListenerinterface allows an implementing object to be informed about changes on anIteminstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiditemCreated(Item item)Called when anIteminstance has been created.voiditemDestroyed(Item item)Called when anItemImplinstance has been destroyed (i.e.voiditemUpdated(Item item, boolean modified)Called when anIteminstance has been refreshed.
-
-
-
Method Detail
-
itemCreated
void itemCreated(Item item)
Called when anIteminstance has been created.- Parameters:
item- the instance which has been created
-
itemUpdated
void itemUpdated(Item item, boolean modified)
Called when anIteminstance has been refreshed. Ifmodifiedistrue, the refresh included some modification.- Parameters:
item- the instance which has been refreshed
-
itemDestroyed
void itemDestroyed(Item item)
Called when anItemImplinstance has been destroyed (i.e. it has been permanently rendered 'invalid').Note that most
,ItemandNodemethods will throw anPropertyInvalidItemStateExceptionwhen called on a 'destroyed' item.- Parameters:
item- the instance which has been destroyed
-
-