public interface ScriptRegistry extends Terminable
ScriptsEMPTY| Modifier and Type | Method and Description |
|---|---|
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
|
bindWith, close, hasTerminated, of, terminate@Nonnull static ScriptRegistry create()
void register(@Nonnull Script script)
script - the script to registervoid unregister(@Nonnull Script script)
script - the script to unregister@Nullable Script getScript(@Nonnull Path path)
path - the pathCopyright © 2017. All rights reserved.