com.caucho.make
Class CachedDependency

java.lang.Object
  extended by com.caucho.make.CachedDependency
All Implemented Interfaces:
Dependency
Direct Known Subclasses:
DeployContainer

public abstract class CachedDependency
extends java.lang.Object
implements Dependency

A cached dependency only checks the dependency at an interval.


Constructor Summary
CachedDependency()
           
 
Method Summary
 long getCheckInterval()
          Gets the check interval.
 boolean isModified()
          Returns true if the underlying resource has changed.
abstract  boolean isModifiedImpl()
          Returns true if the underlying resource has changed.
 void setCheckInterval(long checkInterval)
          Gets the check interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.caucho.vfs.Dependency
logModified
 

Constructor Detail

CachedDependency

public CachedDependency()
Method Detail

getCheckInterval

public long getCheckInterval()
Gets the check interval.


setCheckInterval

public void setCheckInterval(long checkInterval)
Gets the check interval.


isModified

public final boolean isModified()
Returns true if the underlying resource has changed.

Specified by:
isModified in interface Dependency

isModifiedImpl

public abstract boolean isModifiedImpl()
Returns true if the underlying resource has changed.