public class HelperScriptLoader extends Object implements SystemScriptLoader
EMPTY| Constructor and Description |
|---|
HelperScriptLoader(HelperJsPlugin plugin,
SystemScriptBindings bindings,
Path scriptDirectory) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getDirectory()
Gets the root directory of this loader
|
void |
preload()
Tries to recursively load scripts.
|
void |
run() |
boolean |
terminate() |
void |
unwatchAll(Collection<String> paths)
Unloads a collection of scripts
|
void |
watchAll(Collection<String> paths)
Loads and watches a collection of scripts
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunwatch, watchbindWith, close, hasTerminated, ofpublic HelperScriptLoader(HelperJsPlugin plugin, SystemScriptBindings bindings, Path scriptDirectory)
public void watchAll(@Nonnull Collection<String> paths)
ScriptLoaderwatchAll in interface ScriptLoaderpaths - the paths to watchpublic void unwatchAll(@Nonnull Collection<String> paths)
ScriptLoaderunwatchAll in interface ScriptLoaderpaths - the paths to unwatchpublic void preload()
SystemScriptLoaderpreload in interface SystemScriptLoaderpublic Path getDirectory()
ScriptLoaderAll scripts are loaded relative to this directory.
getDirectory in interface ScriptLoaderpublic boolean terminate()
terminate in interface TerminableCopyright © 2017. All rights reserved.