public final class ExtensionLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILD_TIME_CONFIG |
static String |
BUILD_TIME_CONFIG_ROOT |
static String |
RUN_TIME_CONFIG |
static String |
RUN_TIME_CONFIG_ROOT |
| Modifier and Type | Method and Description |
|---|---|
static Consumer<BuildChainBuilder> |
loadStepsFrom(Class<?> clazz,
ConfigDefinition buildTimeConfig,
ConfigDefinition buildTimeRunTimeConfig,
LaunchMode launchMode)
Load all the build steps from the given class.
|
static Consumer<BuildChainBuilder> |
loadStepsFrom(ClassLoader classLoader)
Load all the build steps from the given class loader.
|
static Consumer<BuildChainBuilder> |
loadStepsFrom(ClassLoader classLoader,
LaunchMode launchMode)
Load all the build steps from the given class loader.
|
static Consumer<BuildChainBuilder> |
loadStepsFrom(ClassLoader classLoader,
Properties buildSystemProps)
Load all the build steps from the given class loader.
|
static Consumer<BuildChainBuilder> |
loadStepsFrom(ClassLoader classLoader,
Properties buildSystemProps,
LaunchMode launchMode)
Load all the build steps from the given class loader.
|
public static final String BUILD_TIME_CONFIG
public static final String BUILD_TIME_CONFIG_ROOT
public static final String RUN_TIME_CONFIG
public static final String RUN_TIME_CONFIG_ROOT
public static Consumer<BuildChainBuilder> loadStepsFrom(ClassLoader classLoader) throws IOException, ClassNotFoundException
classLoader - the class loaderIOException - if the class loader could not load a resourceClassNotFoundException - if a build step class is not foundpublic static Consumer<BuildChainBuilder> loadStepsFrom(ClassLoader classLoader, LaunchMode launchMode) throws IOException, ClassNotFoundException
classLoader - the class loaderlaunchMode - the launch modeIOException - if the class loader could not load a resourceClassNotFoundException - if a build step class is not foundpublic static Consumer<BuildChainBuilder> loadStepsFrom(ClassLoader classLoader, Properties buildSystemProps) throws IOException, ClassNotFoundException
classLoader - the class loaderbuildSystemProps - the build system properties to useIOException - if the class loader could not load a resourceClassNotFoundException - if a build step class is not foundpublic static Consumer<BuildChainBuilder> loadStepsFrom(ClassLoader classLoader, Properties buildSystemProps, LaunchMode launchMode) throws IOException, ClassNotFoundException
classLoader - the class loaderbuildSystemProps - the build system properties to useIOException - if the class loader could not load a resourceClassNotFoundException - if a build step class is not foundpublic static Consumer<BuildChainBuilder> loadStepsFrom(Class<?> clazz, ConfigDefinition buildTimeConfig, ConfigDefinition buildTimeRunTimeConfig, LaunchMode launchMode)
clazz - the class to load from (must not be null)buildTimeConfig - the build time configuration (must not be null)buildTimeRunTimeConfig - the build time/run time visible config (must not be null)launchMode - Copyright © 2019 JBoss by Red Hat. All rights reserved.