Package dev.getelements.elements.sdk
Interface ElementRegistrySupplier
- All Superinterfaces:
Supplier<ElementRegistry>
- All Known Implementing Classes:
ElementScopedElementRegistrySupplier
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 ElementRegistrySuppliergetElementLocal(Class<?> aClass) Gets the default sharedElementRegistryfor the currentElement.static ElementRegistrySuppliergetElementLocal(ClassLoader classLoader) Gets the default sharedElementRegistrySupplierfor the currentElement.
-
Method Details
-
getElementLocal
Gets the default sharedElementRegistryfor the currentElement.- Returns:
- the
ElementRegistrySupplier
-
getElementLocal
Gets the default sharedElementRegistrySupplierfor the currentElement.- Returns:
- the
ElementRegistry
-