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 MutableElementRegistryCreates a new instance of theElementRegistryusing the system default SPI.default Elementregister(ElementLoader loader) Using the suppliedElementLoader, registers anElementto this instance, making it available to all child and siblingElements.booleanunregister(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 anElementto this instance, making it available to all child and siblingElements.- Parameters:
loader- theElementLoaderto supply theElement
-
register
- Parameters:
loader- theElementLoaderto 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 theElementRegistryusing the system default SPI.- Returns:
- new
ElementRegistry
-