org.apache.avalon.excalibur.monitor.impl
Class PassiveMonitor

java.lang.Object
  extended by org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
      extended by org.apache.avalon.excalibur.monitor.impl.PassiveMonitor
All Implemented Interfaces:
Monitor, org.apache.avalon.framework.component.Component
Direct Known Subclasses:
PassiveMonitor

public class PassiveMonitor
extends AbstractMonitor

A passive monitor will check the reosurce each time it is accessed.

Version:
$Revision: 1.5 $ $Date: 2004/02/28 11:47:35 $
Author:
Avalon Development Team

Field Summary
private  java.util.Map m_lastModified
           
 
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
ROLE
 
Constructor Summary
PassiveMonitor()
           
 
Method Summary
 Resource getResource(java.lang.String key)
          Find a monitored resource.
 
Methods inherited from class org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
addResource, addResources, getResources, removeResource, removeResource, scanAllResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_lastModified

private java.util.Map m_lastModified
Constructor Detail

PassiveMonitor

public PassiveMonitor()
Method Detail

getResource

public final Resource getResource(java.lang.String key)
Find a monitored resource. If no resource is available, return null

Specified by:
getResource in interface Monitor
Overrides:
getResource in class AbstractMonitor