org.entityfs
Interface EntityValidityControlStrategy


public interface EntityValidityControlStrategy

This defines a strategy interface for how a file system validates that an entity has not disappeared from the underlying file system. The strategy to use is selected when the file system is created.

Since:
1.0
Author:
Karl Gustafsson
See Also:
FileSystemBuilder

Method Summary
 void assertIsValid(Entity entity)
          Verify that the entity still exists in the underlying file system.
 

Method Detail

assertIsValid

void assertIsValid(Entity entity)
                   throws EntityNotFoundException
Verify that the entity still exists in the underlying file system. The entity is at least locked for reading when this method is called.

Parameters:
entity - The entity to validate.
Throws:
EntityNotFoundException - If the entity has disappeared from the underlying file system.