Interface ScriptEnvironment
-
- All Superinterfaces:
AutoCloseable
public interface ScriptEnvironment extends AutoCloseable
Represents an isolated environment in which scripts run Each environment operates within a given rootdirectory, under aScriptController.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScriptControllergetController()Gets the script controller which created this environmentPathgetDirectory()Gets the environments root scripts directoryExportRegistrygetExportRegistry()Gets the export registry for this environmentEnvironmentScriptLoadergetLoader()Gets the script loader used by this environment.ScriptRegistrygetScriptRegistry()Gets the script registry, containing all loaded scripts within this environmentEnvironmentSettingsgetSettings()Gets the environment settings-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
getController
ScriptController getController()
Gets the script controller which created this environment- Returns:
- the parent controller
-
getSettings
EnvironmentSettings getSettings()
Gets the environment settings- Returns:
- the settings
-
getDirectory
Path getDirectory()
Gets the environments root scripts directory- Returns:
- the root directory of this environment
-
getLoader
EnvironmentScriptLoader getLoader()
Gets the script loader used by this environment.Each environment has it's own loader.
- Returns:
- the script loader
-
getScriptRegistry
ScriptRegistry getScriptRegistry()
Gets the script registry, containing all loaded scripts within this environment- Returns:
- the script registry
-
getExportRegistry
ExportRegistry getExportRegistry()
Gets the export registry for this environment- Returns:
- the export registry
-
-