Package dev.getelements.elements.sdk
Interface ElementSupplier
- All Known Implementing Classes:
ElementScopedElementSupplier
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ElementSupplier
getElementLocal
(Class<?> aClass) Gets the currentElementSupplier
, using theClassLoader
from the suppliedClass.getClassLoader()
call.static ElementSupplier
getElementLocal
(ClassLoader classLoader) Gets the currentElementSupplier
using the suppliedClassLoader
.
-
Method Details
-
getElementLocal
Gets the currentElementSupplier
, using theClassLoader
from the suppliedClass.getClassLoader()
call. This is useful for within inside Element code. Note, this is only for use withinElementType.ISOLATED_CLASSPATH
instances.- Parameters:
aClass
- theClass<?>
to use to locate theClassLoader
- Returns:
- the
ElementSupplier
-
getElementLocal
Gets the currentElementSupplier
using the suppliedClassLoader
. Note, this is only for use withinElementType.ISOLATED_CLASSPATH
instances.- Parameters:
classLoader
- theClass<?>
to use to locate theClassLoader
- Returns:
- the
ElementSupplier
-