org.entityfs.util.dirdiff
Interface UnmatchedMasterEntityStrategy

All Known Implementing Classes:
CopyUnmatchedMasterEntityStrategy

public interface UnmatchedMasterEntityStrategy

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

This object is called after the directory differentiator's UnmatchedTargetEntityStrategy is invoked for each entity in the target directory that did not have a matching entity in the master directory.

Since:
1.0
Author:
Karl Gustafsson
See Also:
DirectoryDifferentiator, UnmatchedTargetEntityStrategy, EntityMatchStrategy
In_jar:
entityfs-util

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

Method Detail

handle

void handle(EntityView ev,
            DirectoryView master,
            DirectoryView target)
Handle an entity in the master directory that did not have a matching entity in the target 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.)