org.apache.jackrabbit.core.state
Interface ItemStateListener

All Known Subinterfaces:
NodeStateListener
All Known Implementing Classes:
AbstractVISProvider, CachingHierarchyManager, InternalVersionManagerImpl, ItemManager, LocalItemStateManager, SessionItemStateManager, SharedItemStateManager, VersionItemStateManager, VirtualNodeTypeStateProvider, XAItemStateManager

public interface ItemStateListener

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


Method Summary
 void stateCreated(ItemState created)
          Called when an ItemState has successfully been created (i.e. its underlying persistent state was created).
 void stateDestroyed(ItemState destroyed)
          Called when an ItemState has successfully been removed (i.e. its underlying persistent state has been destroyed).
 void stateDiscarded(ItemState discarded)
          Called when an ItemState has been discarded (i.e. it has been rendered 'invalid').
 void stateModified(ItemState modified)
          Called when an ItemState has successfully been modified (i.e. its underlying persistent state has changed).
 

Method Detail

stateCreated

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

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

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

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