org.entityfs.util.dirdiff
Interface UnmatchedTargetEntityStrategy

All Known Implementing Classes:
DeleteUnmatchedTargetEntityStrategy

public interface UnmatchedTargetEntityStrategy

This strategy object is invoked by a DirectoryDifferentiator for each entity in the target directory that did not have a matching entity in the master directory.

This object is called for all unmatched target entities before the directory differentiator's UnmatchedMasterEntityStrategy is invoked for each entity in the master directory that did not have a matching entity in the target directory.

Since:
1.0
Author:
Karl Gustafsson
See Also:
DirectoryDifferentiator, UnmatchedMasterEntityStrategy, EntityMatchStrategy

Method Summary
 void handle(EntityView ev, DirectoryView master, DirectoryView target)
          Handle an entity in the target directory that did not have a matching entity in the master directory.
 

Method Detail

handle

void handle(EntityView ev,
            DirectoryView master,
            DirectoryView target)
Handle an entity in the target directory that did not have a matching entity in the master directory.

Parameters:
ev - The entity without match.
master - The master directory. Locked for reading. (This method should not release the lock.)
target - The target directory. Locked for writing. (This method should not release the lock.)