org.apache.avalon.excalibur.monitor
Interface Modifiable

All Known Implementing Classes:
Resource

public interface Modifiable

This interface is used by the Monitor section so that we can test if a resource is modified by an external source.

Version:
$Id: Modifiable.java,v 1.4 2004/02/28 11:47:32 cziegeler Exp $
Author:
Avalon Development Team

Method Summary
 long lastModified()
          Simply provides the last time the resource has been modified.
 void testModifiedAfter(long time)
          Tests if a resource has been modified, and causes the resource to act on that test.
 

Method Detail

testModifiedAfter

public void testModifiedAfter(long time)
Tests if a resource has been modified, and causes the resource to act on that test. The contract is that the method does its work only when the time passed in is after the last time the resource was modified.


lastModified

public long lastModified()
Simply provides the last time the resource has been modified.



Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.