org.apache.avalon.excalibur.monitor
Class Resource

java.lang.Object
  |
  +--org.apache.avalon.excalibur.monitor.Resource
All Implemented Interfaces:
Modifiable
Direct Known Subclasses:
StreamResource

public abstract synchronized class Resource
extends java.lang.Object
implements Modifiable


Field Summary
protected  java.beans.PropertyChangeSupport m_eventSupport
           
protected  long m_previousModified
           
protected static java.lang.String MODIFIED
           
 
Constructor Summary
Resource(java.lang.String)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener)
           
protected  void addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
           
protected  void addPropertyChangeListenersFrom(Resource)
           
 java.lang.String getResourceKey()
           
 boolean hasListeners()
           
protected  boolean hasListeners(java.lang.String)
           
abstract  long lastModified()
           
protected  void removeAllPropertyChangeListeners()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener)
           
protected  void removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
           
 void testModifiedAfter(long)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODIFIED

protected static final java.lang.String MODIFIED

m_eventSupport

protected java.beans.PropertyChangeSupport m_eventSupport

m_previousModified

protected long m_previousModified
Constructor Detail

Resource

public Resource(java.lang.String)
         throws java.lang.Exception
Method Detail

getResourceKey

public final java.lang.String getResourceKey()

lastModified

public abstract long lastModified()
Specified by:
lastModified in interface Modifiable

testModifiedAfter

public void testModifiedAfter(long)
Specified by:
testModifiedAfter in interface Modifiable

addPropertyChangeListenersFrom

protected void addPropertyChangeListenersFrom(Resource)

addPropertyChangeListener

public final void addPropertyChangeListener(java.beans.PropertyChangeListener)

addPropertyChangeListener

protected void addPropertyChangeListener(java.lang.String,
                                         java.beans.PropertyChangeListener)

removePropertyChangeListener

public final void removePropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

protected void removePropertyChangeListener(java.lang.String,
                                            java.beans.PropertyChangeListener)

hasListeners

public final boolean hasListeners()

removeAllPropertyChangeListeners

protected void removeAllPropertyChangeListeners()

hasListeners

protected boolean hasListeners(java.lang.String)


Copyright 2001 Apache Jakarta Project. All Rights Reserved.