donaldp 2002/09/07 17:25:13
Modified: monitor/src/java/org/apache/avalon/excalibur/monitor
Resource.java
Log:
A fe wmore touchups
Revision Changes Path
1.13 +13 -3
jakarta-avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/Resource.java
Index: Resource.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/Resource.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Resource.java 8 Sep 2002 00:07:32 -0000 1.12
+++ Resource.java 8 Sep 2002 00:25:12 -0000 1.13
@@ -77,6 +77,16 @@
*/
public void testModifiedAfter( final long time )
{
+ if( getPreviousModified() > time )
+ {
+ //The next line should be uncommented for complete
+ //backward compatability. Unfortunately it does not
+ //make sense to add it or else you could get multiple
+ //notifications about a change.
+ //fireAndSetModifiedTime( lastModified );
+ return;
+ }
+
final long lastModified = lastModified();
if( lastModified > getPreviousModified() || lastModified > time )
{
@@ -103,7 +113,7 @@
}
/**
- * This is the prefered method of registering a
<code>PropertyChangeListender</code>.
+ * This is the prefered method of registering a {@link PropertyChangeListener}.
* It automatically registers the listener for the last modified event.
*/
public final void addPropertyChangeListener( final PropertyChangeListener
listener )
@@ -124,7 +134,7 @@
}
/**
- * This is the prefered method of unregistering a
<code>PropertyChangeListender</code>.
+ * This is the prefered method of unregistering a {@link
PropertyChangeListener}.
* It automatically registers the listener for the last modified event.
*/
public final void removePropertyChangeListener( final PropertyChangeListener
listener )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>