Class ExtensionLoader


  • public final class ExtensionLoader
    extends Object
    Utility class to load build steps, runtime recorders, and configuration roots from a given extension class.
    • 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 loader
        buildSystemProps - the build system properties to use
        platformProperties - Quarkus platform properties
        launchMode - launch mode
        configCustomizer - configuration customizer
        Returns:
        a consumer which adds the steps to the given chain builder
        Throws:
        IOException - if the class loader could not load a resource
        ClassNotFoundException - if a build step class is not found
      • getMethods

        protected static List<Method> getMethods​(Class<?> clazz)