public interface ExportRegistry
Exports shared between scripts.
Allows scripts to share persistent state, or provide a resource in a known namespace.
Some scripts will be designed to be totally stateless, and may use exports to store state between invocations.
| Modifier and Type | Method and Description |
|---|---|
static ExportRegistry |
create()
Creates a new standalone
ExportRegistry. |
<T> Export<T> |
get(String name)
Gets an export
|
Collection<Export<?>> |
getAll()
Returns a collection of all known exports.
|
default <T> Export.Pointer<T> |
pointer(String name)
Gets a pointer to an export
|
void |
remove(String name)
Deletes an export
|
static ExportRegistry create()
ExportRegistry.<T> Export<T> get(String name)
T - the export typename - the name of the exportdefault <T> Export.Pointer<T> pointer(String name)
T - the export typename - the name of the exportExport.Pointervoid remove(String name)
name - the name of the export to remove.Collection<Export<?>> getAll()
Copyright © 2018. All rights reserved.