org.goetz.domino.log4j.config
Class FileWatcher

java.lang.Object
  extended byjava.util.TimerTask
      extended byorg.goetz.domino.log4j.config.FileWatcher
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ConfigFileWatcher

public abstract class FileWatcher
extends java.util.TimerTask

Used to reload log4j configurations across different JVMs and class loaders.

Author:
Bernd G?tz

Constructor Summary
FileWatcher(java.io.File file)
           
 
Method Summary
protected abstract  void onChange(java.io.File file)
          Called only when the file changed.
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWatcher

public FileWatcher(java.io.File file)
Method Detail

run

public final void run()

onChange

protected abstract void onChange(java.io.File file)
Called only when the file changed.

Parameters:
file - referred file.


Copyright © -2008 . All Rights Reserved.