|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.depend.Dependency
Represents a dependency between a real file and a server object. The servler object has a timestamp, and it is compared with the file lastModified time to detect changes. The DependManager will do the checkings ( with the minimal possible overhead ).
Constructor Summary | |
Dependency()
|
Method Summary | |
boolean |
checkExpiry()
Check if the origin changed since target's was lastModified. |
long |
getLastModified()
|
java.io.File |
getOrigin()
|
java.lang.Object |
getTarget()
|
boolean |
isExpired()
|
boolean |
isLocal()
|
void |
reset()
|
void |
setExpired(boolean b)
Mark this dependency as expired. |
void |
setLastModified(long v)
The time when the server-side object has been loaded/modified. |
void |
setLocal(boolean b)
If set, the dependency will be "local", i.e. |
void |
setOrigin(java.io.File v)
The file on which the server-side object depends or has been loaded from. |
void |
setTarget(java.lang.Object v)
Server-side object that is checked for dependency on the file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Dependency()
Method Detail |
public void setLastModified(long v)
v
- modification timepublic long getLastModified()
public void reset()
public void setLocal(boolean b)
public boolean isLocal()
public void setExpired(boolean b)
public boolean isExpired()
public void setOrigin(java.io.File v)
v
- Value to assign to origin.public java.io.File getOrigin()
public void setTarget(java.lang.Object v)
v
- Value to assign to target.public java.lang.Object getTarget()
public java.lang.String toString()
public boolean checkExpiry()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |