|
|||||||||
前のパッケージ 次のパッケージ | フレームあり フレームなし |
参照:
説明
インタフェースの概要 | |
Modifiable | This interface is used by the Monitor section so that we can test if a resource is modified by an external source. |
Monitor | The Monitor is used to actively check a set of resources to see if they have changed. |
クラスの概要 | |
ActiveMonitor | The ActiveMonitor is used to actively check a set of resources to see if they have changed. |
FileResource | Managed File based Resource. |
PassiveMonitor | The PassiveMonitor is used to passively check a set of resources to see if they have changed. |
Resource | Managed Resource. |
StreamResource | Managed Stream based Resource. |
An extensible resource monitor framework and implementation.
The org.apache.avalon.excalibur.monitor
package contains interfaces and classes
for resource monitoring. The design is sufficiently modular to allow for different implementations of the
monitoring strategies, and resource types. A FileResource is included for your convenience.
In order to receive notification that a resource has been modified, you must implement the
java.beans.PropertyChangeListener
interface. You will be notified with a
java.beans.PropertyChangeEvent
where the property name is "last-modified".
Because the PropertyChangeEvent works with Objects, you must recast the Object returned
into a java.lang.Long
object. From there you can derive the previously modified
time as well as the current modified time.
|
|||||||||
前のパッケージ 次のパッケージ | フレームあり フレームなし |