public interface IPlugletHost
PlugletExecutor
class. Pluglet hosts can use the default PlugletHost
class implementation or provide their own implementation.Modifier and Type | Method and Description |
---|---|
boolean |
enableTracing()
Used by the pluglet engine to determine whether the host
has tracing enabled.
|
IPlugletCompiler |
getCompiler()
Used by the pluglet engine to retrieve the optional
compiler invocation interface.
|
java.net.URLClassLoader[] |
getContext()
Used by the pluglet engine to retrieve the
URLClassLoader objects. |
IPlugletMessageDialog |
getDialog()
Used by the pluglet engine to retrieve the
IPlugletMessageDialog implementation. |
java.io.PrintWriter |
getOutput()
Used by the pluglet engine to retrieve the stream used for the
pluglet output, the pluglet engine's tracing output, and the compiler
error messages.
|
IPlugletCompiler getCompiler()
You can use the PlugletCompiler
class to construct a
compiler or you can construct your own implementation of the
IPlugletCompiler
interface.
java.net.URLClassLoader[] getContext()
URLClassLoader
objects.
The URLClassLoader
objects define what classes
are visible to the pluglets that are executed from this host.
IPlugletMessageDialog getDialog()
IPlugletMessageDialog
implementation.
This method is used by the Pluglet
class to
implement dialog methods.
java.io.PrintWriter getOutput()
Because the pluglet engine assigns the value returned by this method
to the Pluglet.out
class
variable, the output of the pluglet is displayed to this output stream.
If tracing is enabled, the
PlugletExecutor
tracing output is also displayed to this stream. Depending on
the implementation of the IPlugletCompiler
interface, all
compiler error messages are displayed to this stream.
PrintWriter
for pluglet output.boolean enableTracing()
The PlugletExecutor
tracing is enabled if this returns a boolean
value
of true
.
boolean
that has a value of
true
when tracing is enabled. Otherwise, it
returns a value of false
.