Skip to content
Snippets Groups Projects
Commit 733aa9a5 authored by brinn's avatar brinn
Browse files

refactor: make IPathHandler a top level interface

SVN: 1874
parent 5389e13f
No related branches found
No related tags found
No related merge requests found
...@@ -74,18 +74,6 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ISelf ...@@ -74,18 +74,6 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ISelf
private long faultyPathsLastChanged; private long faultyPathsLastChanged;
/**
* A handler for paths. The paths are supposed to go away when they have been handled successfully.
*/
public interface IPathHandler
{
/**
* Handles the <var>path</var>. Successful handling is indicated by <var>path</var> being gone when the method
* returns.
*/
public void handle(File path);
}
/** /**
* Creates a <var>DirectoryScanningTimerTask</var>. * Creates a <var>DirectoryScanningTimerTask</var>.
* *
......
package ch.systemsx.cisd.common.utilities;
import java.io.File;
/**
* A role for handling paths. The paths are supposed to go away when they have been handled successfully.
*
* @author Bernd Rinn
*/
public interface IPathHandler
{
/**
* Handles the <var>path</var>. Successful handling is indicated by <var>path</var> being gone when the method
* returns.
*/
public void handle(File path);
}
\ No newline at end of file
...@@ -38,7 +38,6 @@ import ch.systemsx.cisd.common.logging.LogMonitoringAppender; ...@@ -38,7 +38,6 @@ import ch.systemsx.cisd.common.logging.LogMonitoringAppender;
import ch.systemsx.cisd.common.utilities.CollectionIO; import ch.systemsx.cisd.common.utilities.CollectionIO;
import ch.systemsx.cisd.common.utilities.DirectoryScanningTimerTask; import ch.systemsx.cisd.common.utilities.DirectoryScanningTimerTask;
import ch.systemsx.cisd.common.utilities.FileUtilities; import ch.systemsx.cisd.common.utilities.FileUtilities;
import ch.systemsx.cisd.common.utilities.DirectoryScanningTimerTask.IPathHandler;
import ch.systemsx.cisd.common.utilities.StoringUncaughtExceptionHandler; import ch.systemsx.cisd.common.utilities.StoringUncaughtExceptionHandler;
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment