public interface ScriptLoader extends Terminable
EMPTY| Modifier and Type | Method and Description |
|---|---|
Path |
getDirectory()
Gets the root directory of this loader
|
default void |
unwatch(String... paths)
Unloads a script
|
void |
unwatchAll(Collection<String> paths)
Unloads a collection of scripts
|
default void |
watch(String... paths)
Loads and watches a script
|
void |
watchAll(Collection<String> paths)
Loads and watches a collection of scripts
|
bindWith, close, hasTerminated, of, terminatedefault void watch(@Nonnull String... paths)
paths - the path to watchvoid watchAll(@Nonnull Collection<String> paths)
paths - the paths to watchdefault void unwatch(@Nonnull String... paths)
paths - the path to unwatchvoid unwatchAll(@Nonnull Collection<String> paths)
paths - the paths to unwatchPath getDirectory()
All scripts are loaded relative to this directory.
Copyright © 2017. All rights reserved.