org.apache.jackrabbit.jcr2spi
Interface ItemLifeCycleListener

All Known Subinterfaces:
ItemManager
All Known Implementing Classes:
ItemManagerImpl

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.
 void itemInvalidated(Item item)
          Called when an Item instance has been invalidated (i.e.
 

Method Detail

itemCreated

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

Parameters:
item - the instance which has been created

itemInvalidated

void itemInvalidated(Item item)
Called when an Item instance has been invalidated (i.e. it has been temporarily rendered 'invalid').

Note that most methods of Item, Node and Property will throw an InvalidItemStateException when called on an 'invalidated' item.

Parameters:
item - the instance which has been discarded

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-2008 The Apache Software Foundation. All Rights Reserved.