public interface Launcher
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),
DefaultLauncherObject[] launch(String script, Object[] arg)
script - The script contents.arg - Optional arguments supplied to the script.Object[] launch(InputStream script, Object[] arg)
script - The script as an InputStream.arg - Optional arguments supplied to the script.Copyright © 2020. All rights reserved.