|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.avalon.excalibur.monitor.Resource
Managed Resource. All resources must have a constructor that takes a String and converts it to the needed format (i.e. File). A Managed Resource in the Monitor section has only one property needed to be changed: last modified. The property name for the last modified event will be the same as the resource key. Implementations may add additional properties, but for most instances the last modified property will be enough.
フィールドの概要 | |
protected java.beans.PropertyChangeSupport |
m_eventSupport
|
protected long |
m_previousModified
|
protected static java.lang.String |
MODIFIED
|
コンストラクタの概要 | |
Resource(java.lang.String location)
Required constructor. |
メソッドの概要 | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
This is the prefered method of registering a PropertyChangeListender .
|
protected void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
This is a convenience if you want to expose other properties for the Resource. |
protected void |
addPropertyChangeListenersFrom(Resource other)
Abstract method to add the PropertyChangeListeners in another Resource to this one. |
java.lang.String |
getResourceKey()
Return the key for the resource. |
boolean |
hasListeners()
This is the preferred method of determining if a Resource has listeners. |
protected boolean |
hasListeners(java.lang.String property)
This is a convenience if you want to expose other properties for the Resource. |
abstract long |
lastModified()
The time this was last modified. |
protected void |
removeAllPropertyChangeListeners()
This cleanup method removes all listeners |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
This is the prefered method of unregistering a PropertyChangeListender .
|
protected void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
This is a convenience if you want to expose other properties for the Resource. |
void |
testModifiedAfter(long time)
Test whether this has been modified since time X |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final java.lang.String MODIFIED
protected java.beans.PropertyChangeSupport m_eventSupport
protected long m_previousModified
コンストラクタの詳細 |
public Resource(java.lang.String location) throws java.lang.Exception
String
location is transformed by
the specific resource monitor. For instance, a FileResource will be able
to convert a string representation of a path to the proper File object.メソッドの詳細 |
public final java.lang.String getResourceKey()
public abstract long lastModified()
Modifiable
内の lastModified
public void testModifiedAfter(long time)
Modifiable
内の testModifiedAfter
protected void addPropertyChangeListenersFrom(Resource other)
public final void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListender
.
It automatically registers the listener for the last modified event.protected void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
public final void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListender
.
It automatically registers the listener for the last modified event.protected void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
public final boolean hasListeners()
protected void removeAllPropertyChangeListeners()
protected boolean hasListeners(java.lang.String property)
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |