public final class BuildChainBuilder extends Object
| Constructor and Description |
|---|
BuildChainBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BuildStepBuilder |
addBuildStep()
Add a build step to the chain.
|
BuildStepBuilder |
addBuildStep(BuildStep buildStep)
Add a build step to the chain.
|
BuildChainBuilder |
addFinal(Class<? extends BuildItem> type)
Declare a final item that will be consumable after the build step chain completes.
|
BuildChainBuilder |
addInitial(Class<? extends BuildItem> type)
Declare an initial item that will be provided to build steps in the chain.
|
(package private) void |
addProvider(BuildProvider provider) |
(package private) void |
addStep(BuildStepBuilder stepBuilder,
StackTraceElement[] stackTrace) |
BuildChain |
build()
Build the build step chain from the current builder configuration.
|
(package private) ClassLoader |
getClassLoader() |
(package private) Set<ItemId> |
getFinalIds() |
(package private) BuildStepBuilder |
getFinalStep() |
(package private) Set<ItemId> |
getInitialIds() |
(package private) List<BuildProvider> |
getProviders() |
(package private) Map<BuildStepBuilder,StackTraceElement[]> |
getSteps() |
BuildChainBuilder |
loadProviders(ClassLoader classLoader) |
void |
setClassLoader(ClassLoader classLoader)
Sets the ClassLoader for the build.
|
public BuildStepBuilder addBuildStep(BuildStep buildStep)
A given build step is included in the chain when one or more of the following criteria are met:
buildStep - the build step instancepublic BuildStepBuilder addBuildStep()
A given build step is included in the chain when one or more of the following criteria are met:
public BuildChainBuilder addInitial(Class<? extends BuildItem> type)
type - the item type (must not be null)IllegalArgumentException - if the item type is nullpublic BuildChainBuilder loadProviders(ClassLoader classLoader) throws ChainBuildException
ChainBuildExceptionpublic BuildChainBuilder addFinal(Class<? extends BuildItem> type)
type - the item type (must not be null)IllegalArgumentException - if the item type is nullClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader - The ClassLoaderpublic BuildChain build() throws ChainBuildException
ChainBuildException - if the chain could not be builtvoid addProvider(BuildProvider provider) throws ChainBuildException
ChainBuildExceptionvoid addStep(BuildStepBuilder stepBuilder, StackTraceElement[] stackTrace)
BuildStepBuilder getFinalStep()
List<BuildProvider> getProviders()
Map<BuildStepBuilder,StackTraceElement[]> getSteps()
Copyright © 2021 JBoss by Red Hat. All rights reserved.