|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.invocation.lifecycle.FileResource
public class FileResource
a LifecyleResource representing a File.
| Constructor Summary | |
|---|---|
FileResource(java.io.File f)
builds a new FileResource. |
|
| Method Summary | |
|---|---|
java.io.File |
getFile()
Returns the File to whom this Resource is linked. |
boolean |
isModified()
checks if the file has been modified since the last check. |
void |
restart()
simply calls shutdown() and startup(). |
void |
shutdown()
does nothing, only here to satisfy the interface. |
void |
startup()
updates the last modified timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileResource(java.io.File f)
f - the file represented by the FileResource| Method Detail |
|---|
public final java.io.File getFile()
File to whom this Resource is linked.
File to whom this Resource is linked.public final boolean isModified()
isModified in interface LifecycleResourcetrue, if the file has been modified.public final void startup()
startup in interface LifecycleResourcepublic final void shutdown()
shutdown in interface LifecycleResourcepublic final void restart()
shutdown() and startup().
restart in interface LifecycleResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||