|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Launcher
Interface to launch lua scripts using the LuajClassLoader
.
Note: This class is experimental and subject to change in future versions.
This interface is purposely genericized to defer class loading so that luaj classes can come from the class loader.
The implementation should be acquired using LuajClassLoader.NewLauncher()
or LuajClassLoader.NewLauncher(Class)
which ensure that the classes are
loaded to give each Launcher instance a pristine set of Globals, including
the shared metatables.
LuajClassLoader
,
LuajClassLoader.NewLauncher()
,
LuajClassLoader.NewLauncher(Class)
,
DefaultLauncher
Method Summary | |
---|---|
java.lang.Object[] |
launch(java.io.InputStream script,
java.lang.Object[] arg)
Launch a script from an InputStream. |
java.lang.Object[] |
launch(java.io.Reader script,
java.lang.Object[] arg)
Launch a script from a Reader. |
java.lang.Object[] |
launch(java.lang.String script,
java.lang.Object[] arg)
Launch a script contained in a String. |
Method Detail |
---|
java.lang.Object[] launch(java.lang.String script, java.lang.Object[] arg)
script
- The script contents.arg
- Optional arguments supplied to the script.
java.lang.Object[] launch(java.io.InputStream script, java.lang.Object[] arg)
script
- The script as an InputStream.arg
- Optional arguments supplied to the script.
java.lang.Object[] launch(java.io.Reader script, java.lang.Object[] arg)
script
- The script as a Reader.arg
- Optional arguments supplied to the script.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |