com.partnersoft.v3x.apps.Propagate
Class PreferencesPropagator

java.lang.Object
  extended by com.partnersoft.v3x.apps.Propagate.PreferencesPropagator
All Implemented Interfaces:
FilePropagator

public class PreferencesPropagator
extends java.lang.Object
implements FilePropagator

A FilePropagator for preference files - i.e. config files that are seat- or user-specific.


Constructor Summary
PreferencesPropagator()
           
 
Method Summary
 boolean outOfDate(java.io.File master, java.io.File slave)
           
 void update(java.io.File master, java.io.File slave)
          Updates the slave from the master.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesPropagator

public PreferencesPropagator()
Method Detail

outOfDate

public boolean outOfDate(java.io.File master,
                         java.io.File slave)
Specified by:
outOfDate in interface FilePropagator

update

public void update(java.io.File master,
                   java.io.File slave)
            throws java.io.IOException
Description copied from interface: FilePropagator
Updates the slave from the master. In general, assumes that outOfDate() or equivalent is called first (i.e., only updates if necessary)

Specified by:
update in interface FilePropagator
Throws:
java.io.IOException