Package dev.getelements.elements.sdk
Interface ElementRegistrySupplier
- All Superinterfaces:
Supplier<ElementRegistry>
- All Known Implementing Classes:
ElementScopedElementRegistrySupplier
,LocalElementRegistrySupplier
Gets a shared instance of
ElementRegistry
which can be used to load Element
instances into the
application. From within a ElementType.ISOLATED_CLASSPATH
instance, this will be shared and isolated from
the others.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ElementRegistrySupplier
getElementLocal
(Class<?> aClass) Gets the default sharedElementRegistry
for the currentElement
.static ElementRegistrySupplier
getElementLocal
(ClassLoader classLoader) Gets the default sharedElementRegistrySupplier
for the currentElement
.
-
Method Details
-
getElementLocal
Gets the default sharedElementRegistry
for the currentElement
.- Returns:
- the
ElementRegistrySupplier
-
getElementLocal
Gets the default sharedElementRegistrySupplier
for the currentElement
.- Returns:
- the
ElementRegistry
-