Package dev.getelements.elements.sdk
Interface MutableElementRegistry
- All Superinterfaces:
AutoCloseable
,ElementRegistry
- All Known Implementing Classes:
RootElementRegistry
Interfaces for a mutable
ElementRegistry
. This is a specialization of an ElementRegistry
which
permits the loading of additional Element
instances.-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.ElementRegistry
ROOT
-
Method Summary
Modifier and TypeMethodDescriptionstatic MutableElementRegistry
Creates a new instance of theElementRegistry
using the system default SPI.default Element
register
(ElementLoader loader) Using the suppliedElementLoader
, registers anElement
to this instance, making it available to all child and siblingElement
s.boolean
unregister
(Element element) Unregisters anElement
, provided it was previously registered.Methods inherited from interface dev.getelements.elements.sdk.ElementRegistry
close, find, newSubordinateRegistry, onClose, onEvent, publish, stream
-
Method Details
-
register
Using the suppliedElementLoader
, registers anElement
to this instance, making it available to all child and siblingElement
s.- Parameters:
loader
- theElementLoader
to supply theElement
-
register
- Parameters:
loader
- theElementLoader
to supply theElement
-
unregister
Unregisters anElement
, provided it was previously registered.- Returns:
- if the Element existed, and was successfully removed.
-
newDefaultInstance
Creates a new instance of theElementRegistry
using the system default SPI.- Returns:
- new
ElementRegistry
-