Package dev.getelements.elements.sdk
Interface ElementLoader
- All Superinterfaces:
ElementStandardBeanProperties
- All Known Implementing Classes:
DefaultSharedElementLoader,ElementLoader.Default,GuiceElementLoader
Interface for loading SDK Elements. Implementations of this amy implement the following Java bean properties, which
will be injected by the
ElementLoaderFactory instance using the bean property "elementRecord".
Note, ElementLoader instances are meant to be one-time use. Once load() or related methods are
called then subsequent calls are undefined.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classUsed to specify the system defaultElementLoader.Nested classes/interfaces inherited from interface dev.getelements.elements.sdk.ElementStandardBeanProperties
ElementStandardBeanProperties.StandardBeanProperty<T> -
Field Summary
FieldsFields inherited from interface dev.getelements.elements.sdk.ElementStandardBeanProperties
ELEMENT_DEFINITION_RECORD, ELEMENT_DEFINITION_RECORD_PROPERTY, ELEMENT_RECORD, ELEMENT_RECORD_PROPERTY, ELEMENT_REGISTRY, ELEMENT_REGISTRY_PROPERTY, SERVICE_LOCATOR, SERVICE_LOCATOR_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionGets theElementRecord, which can be invoked before attepting aload()orload(MutableElementRegistry)operation.default Elementload()Loads a new instance of theElementwithout a parent registry.load(MutableElementRegistry parent) Loads a new instance of theElementwith the suppliedElementRegistryas the parent.
-
Field Details
-
SYSTEM_EVENT_ELEMENT_LOADED
Called after the Element is loaded.- See Also:
-
-
Method Details
-
load
Loads a new instance of theElementwithout a parent registry. -
load
Loads a new instance of theElementwith the suppliedElementRegistryas the parent.- Returns:
- the
Element, loaded
-
getElementRecord
ElementRecord getElementRecord()Gets theElementRecord, which can be invoked before attepting aload()orload(MutableElementRegistry)operation.- Returns:
- the
ElementRecord
-