public interface ScriptRegistry extends AutoCloseable
Scripts| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ScriptRegistry |
create() |
Map<Path,Script> |
getAll()
Gets all scripts known to this registry
|
Script |
getScript(Path path)
Gets a script by path
|
void |
register(Script script)
Registers a script
|
void |
unregister(Script script)
Unregisters a script
|
static ScriptRegistry create()
void register(Script script)
script - the script to registervoid unregister(Script script)
script - the script to unregisterScript getScript(Path path)
path - the pathvoid close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.