public class DelegateScriptLoader extends Object implements ScriptLoader
ScriptLoader which delegates calls to a parent, but keeps track of the files
watched via its instance.EMPTY| Constructor and Description |
|---|
DelegateScriptLoader(ScriptLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getDirectory()
Gets the root directory of this loader
|
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 DelegateScriptLoader(@Nonnull ScriptLoader parent)
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 Path getDirectory()
ScriptLoaderAll scripts are loaded relative to this directory.
getDirectory in interface ScriptLoaderpublic boolean terminate()
terminate in interface TerminableCopyright © 2017. All rights reserved.