public interface ScriptLoader extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ScriptEnvironment |
getEnvironment()
Gets the script environment this loader is operating in
|
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
|
ScriptEnvironment getEnvironment()
default void watch(String... paths)
paths - the path to watchvoid watchAll(Collection<String> paths)
paths - the paths to watchdefault void unwatch(String... paths)
paths - the path to unwatchvoid unwatchAll(Collection<String> paths)
paths - the paths to unwatchvoid close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018. All rights reserved.