Package io.quarkus.deployment
Class ExtensionLoader
- java.lang.Object
-
- io.quarkus.deployment.ExtensionLoader
-
public final class ExtensionLoader extends Object
Utility class to load build steps, runtime recorders, and configuration roots from a given extension class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static List<Method>getMethods(Class<?> clazz)static Consumer<BuildChainBuilder>loadStepsFrom(ClassLoader classLoader, Properties buildSystemProps, Map<String,String> platformProperties, LaunchMode launchMode, DevModeType devModeType, Consumer<org.eclipse.microprofile.config.spi.ConfigBuilder> configCustomizer)Load all the build steps from the given class loader.
-
-
-
Method Detail
-
loadStepsFrom
public static Consumer<BuildChainBuilder> loadStepsFrom(ClassLoader classLoader, Properties buildSystemProps, Map<String,String> platformProperties, LaunchMode launchMode, DevModeType devModeType, Consumer<org.eclipse.microprofile.config.spi.ConfigBuilder> configCustomizer) throws IOException, ClassNotFoundException
Load all the build steps from the given class loader.- Parameters:
classLoader- the class loaderbuildSystemProps- the build system properties to useplatformProperties- Quarkus platform propertieslaunchMode- launch modeconfigCustomizer- configuration customizer- Returns:
- a consumer which adds the steps to the given chain builder
- Throws:
IOException- if the class loader could not load a resourceClassNotFoundException- if a build step class is not found
-
-