|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.cpc.ViewerRuntime
public abstract class ViewerRuntime
The superclass of all running "viewers", ie. plugins and helper apps. This
hierarchy concerns itself with runtime / lifecycle behaviour, rather than
with information about the viewer that is common to all instances thereof;
for that, see Viewer
.
Field Summary | |
---|---|
protected VFile |
target
|
Constructor Summary | |
---|---|
ViewerRuntime()
|
Method Summary | |
---|---|
void |
cleanup()
Cleanup after the viewer. |
VFile |
getTarget()
Gets the target VFile. |
abstract void |
kill()
Destroy the viewer. |
abstract void |
launch()
Prepare and launch the viewer. |
void |
setTarget(VFile target)
Sets the target VFile. |
abstract void |
waitFor()
block until the viewer has finished. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected VFile target
Constructor Detail |
---|
public ViewerRuntime()
Method Detail |
---|
public final void setTarget(VFile target)
target
- The target. Gosh, you don't say.public final VFile getTarget()
public abstract void launch() throws java.io.IOException
java.io.IOException
public abstract void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
public abstract void kill()
waitFor
to return.
public void cleanup() throws java.io.IOException
kill
ed.
The default implementation does nothing. NB.
Viewers which are plugins are not always garbage-collected as promptly
as one might expect: under some circumstances, they remain reachable
via the window manager long after one would have expected them to
be collected. This can cause significant heap-leaks. To ameliorate
this, plug-ins should manually null all references they hold to
user data, so that this at least can be collected promptly.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |