org.entityfs.impl
Class BackendCheckingValidityControlStrategy
java.lang.Object
org.entityfs.impl.BackendCheckingValidityControlStrategy
- All Implemented Interfaces:
- EntityValidityControlStrategy
public class BackendCheckingValidityControlStrategy
- extends Object
- implements EntityValidityControlStrategy
This EntityValidityControlStrategy
uses the file system backend to
check if the entity is still present. It can be used when file system
entities may be modified or even deleted from other processes. (It is not
recommended that other processes access file system entities, but sometimes
that is just plain necessary.)
- Since:
- 1.0
- Author:
- Karl Gustafsson
- In_jar:
- entityfs-core
Method Summary |
void |
assertIsValid(Entity entity)
Verify that the entity still exists in the underlying file system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackendCheckingValidityControlStrategy
public BackendCheckingValidityControlStrategy()
assertIsValid
public void assertIsValid(Entity entity)
- Description copied from interface:
EntityValidityControlStrategy
- Verify that the entity still exists in the underlying file system. The
entity is at least locked for reading when this method is called.
- Specified by:
assertIsValid
in interface EntityValidityControlStrategy
- Parameters:
entity
- The entity to validate.