|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.joanju.cg.core.ScriptLoader
public class ScriptLoader
| Constructor Summary | |
|---|---|
ScriptLoader()
|
|
| Method Summary | |
|---|---|
static java.io.File |
getScriptDirectory()
Get the script directory, or null if the joanjuconfig directory is not found. |
static java.lang.Object |
loadIfAvailable(java.lang.String scriptClassName)
Load an instance of a script class by class name. |
static void |
runScript(java.lang.String scriptFileName)
Run a script from the scripts directory. |
static boolean |
scriptExists(java.lang.String scriptFileName)
Check if a script file exists in joanjuconfig/cgscripts/. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptLoader()
| Method Detail |
|---|
public static java.io.File getScriptDirectory()
public static java.lang.Object loadIfAvailable(java.lang.String scriptClassName)
throws java.io.IOException
java.io.IOException - If the script fails to load.
public static void runScript(java.lang.String scriptFileName)
throws ResourceException,
ScriptException,
java.io.IOException
ResourceException
ScriptException
java.io.IOExceptionpublic static boolean scriptExists(java.lang.String scriptFileName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||