uk.ac.ed.inf.ogsaconfig.garm.collections.policies
Class ReplacePolicy

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.policies.ReplacePolicy
All Implemented Interfaces:
Policy

public class ReplacePolicy
extends java.lang.Object
implements Policy

A policy that mandates no file ever be preserved


Constructor Summary
ReplacePolicy()
           
 
Method Summary
 boolean replace(VFile currentFile, VFile newFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplacePolicy

public ReplacePolicy()
Method Detail

replace

public boolean replace(VFile currentFile,
                       VFile newFile)
Specified by:
replace in interface Policy
Parameters:
currentFile - is the file currently in place
newFile - is the file that is a candidate to replace it
Returns:
true if the replacement should occur, false otherwise