Interface ScriptRegistry
-
- All Superinterfaces:
AutoCloseable
public interface ScriptRegistry extends AutoCloseable
A registry ofScripts
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()static ScriptRegistrycreate()Map<Path,Script>getAll()Gets all scripts known to this registryScriptgetScript(Path path)Gets a script by pathvoidregister(Script script)Registers a scriptvoidunregister(Script script)Unregisters a script
-
-
-
Method Detail
-
create
static ScriptRegistry create()
-
register
void register(Script script)
Registers a script- Parameters:
script- the script to register
-
unregister
void unregister(Script script)
Unregisters a script- Parameters:
script- the script to unregister
-
getScript
Script getScript(Path path)
Gets a script by path- Parameters:
path- the path- Returns:
- a script for the path, or null
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
-