org.apache.jackrabbit.core.state
Interface ItemStateListener

All Known Subinterfaces:
NodeStateListener
All Known Implementing Classes:
AbstractVISProvider, CachingHierarchyManager, ItemImpl, ItemState, LocalItemStateManager, SharedItemStateManager

public interface ItemStateListener

The ItemStateListener interface allows an implementing object to be informed about changes on an ItemState.

See Also:
ItemState.addListener(org.apache.jackrabbit.core.state.ItemStateListener)

Method Summary
 void stateCreated(ItemState created)
          Called when an ItemState has successfully been created (i.e.
 void stateDestroyed(ItemState destroyed)
          Called when an ItemState has successfully been removed (i.e.
 void stateDiscarded(ItemState discarded)
          Called when an ItemState has been discarded (i.e.
 void stateModified(ItemState modified)
          Called when an ItemState has successfully been modified (i.e.
 

Method Detail

stateCreated

public void stateCreated(ItemState created)
Called when an ItemState has successfully been created (i.e. its underlying persistent state was created).

Parameters:
created - the ItemState that has been 'created'

stateModified

public void stateModified(ItemState modified)
Called when an ItemState has successfully been modified (i.e. its underlying persistent state has changed).

Parameters:
modified - the ItemState that has been 'modified'

stateDestroyed

public void stateDestroyed(ItemState destroyed)
Called when an ItemState has successfully been removed (i.e. its underlying persistent state has been destroyed).

Parameters:
destroyed - the ItemState that has been 'destroyed'

stateDiscarded

public void stateDiscarded(ItemState discarded)
Called when an ItemState has been discarded (i.e. it has been rendered 'invalid').

Parameters:
discarded - the ItemState that has been discarded
See Also:
ItemState.discard()


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