org.apache.jackrabbit.jcr2spi
Interface ItemLifeCycleListener

All Known Subinterfaces:
ItemCache
All Known Implementing Classes:
ItemCacheImpl

public interface ItemLifeCycleListener

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

See Also:
ItemImpl.addLifeCycleListener(org.apache.jackrabbit.jcr2spi.ItemLifeCycleListener)

Method Summary
 void itemCreated(Item item)
          Called when an Item instance has been created.
 void itemDestroyed(Item item)
          Called when an ItemImpl instance has been destroyed (i.e. it has been permanently rendered 'invalid').
 void itemUpdated(Item item, boolean modified)
          Called when an Item instance has been refreshed.
 

Method Detail

itemCreated

void itemCreated(Item item)
Called when an Item instance has been created.

Parameters:
item - the instance which has been created

itemUpdated

void itemUpdated(Item item,
                 boolean modified)
Called when an Item instance has been refreshed. If modified is true, the refresh included some modification.

Parameters:
item - the instance which has been refreshed

itemDestroyed

void itemDestroyed(Item 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:
item - the instance which has been destroyed


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.