org.apache.jackrabbit.core
Interface ItemLifeCycleListener

All Known Implementing Classes:
ItemManager

public interface ItemLifeCycleListener

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

See Also:
ItemImpl#addLifeCycleListener

Method Summary
 void itemCreated(ItemImpl item)
          Called when an ItemImpl instance has been created.
 void itemDestroyed(ItemId id, ItemImpl item)
          Called when an ItemImpl instance has been destroyed (i.e.
 void itemInvalidated(ItemId id, ItemImpl item)
          Called when an ItemImpl instance has been invalidated (i.e.
 

Method Detail

itemCreated

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

Parameters:
item - the instance which has been created

itemInvalidated

public void itemInvalidated(ItemId id,
                            ItemImpl item)
Called when an ItemImpl instance has been invalidated (i.e. it has been temporarily rendered 'invalid').

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

Parameters:
id - the id of the instance that has been discarded
item - the instance which has been discarded

itemDestroyed

public void itemDestroyed(ItemId id,
                          ItemImpl 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:
id - the id of the instance that has been destroyed
item - the instance which has been destroyed


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