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