org.apache.jackrabbit.jcr2spi.hierarchy
Interface EntryFactory.InvalidationStrategy

Enclosing class:
EntryFactory

public static interface EntryFactory.InvalidationStrategy

Strategy for invalidating item states


Method Summary
 void applyPending(HierarchyEntry entry)
          Apply any pending invalidation of the underlying ItemState of this entry.
 void invalidate(HierarchyEntry entry, boolean recursive)
          Invalidate underlying ItemState of this entry.
 

Method Detail

invalidate

void invalidate(HierarchyEntry entry,
                boolean recursive)
Invalidate underlying ItemState of this entry. Implementors may choose to delay the actual call to ItemState.invalidate() for this entry and for any of its child entries. They need to ensure however that applyPending(HierarchyEntry) properly invalidates the respective state when called.

Parameters:
entry - The HierarchyEntry to invalidate.
recursive - Invalidate state of child entries if true.

applyPending

void applyPending(HierarchyEntry entry)
Apply any pending invalidation of the underlying ItemState of this entry.

Parameters:
entry - The affected NodeEntry.


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