public class DelegateScriptLoader extends Object implements ScriptLoader
ScriptLoader which delegates calls to a parent,
but keeps track of the files watched via its instance.| Constructor and Description |
|---|
DelegateScriptLoader(ScriptLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ScriptEnvironment |
getEnvironment()
Gets the script environment this loader is operating in
|
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, watchpublic DelegateScriptLoader(ScriptLoader parent)
public ScriptEnvironment getEnvironment()
ScriptLoadergetEnvironment in interface ScriptLoaderpublic void watchAll(Collection<String> paths)
ScriptLoaderwatchAll in interface ScriptLoaderpaths - the paths to watchpublic void unwatchAll(Collection<String> paths)
ScriptLoaderunwatchAll in interface ScriptLoaderpaths - the paths to unwatchpublic void close()
close in interface AutoCloseableclose in interface ScriptLoaderCopyright © 2018. All rights reserved.