Package io.quarkus.builder
Class BuildChain
- java.lang.Object
-
- io.quarkus.builder.BuildChain
-
public final class BuildChain extends Object
A build chain.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description BuildChain(int initialSingleCount, int initialMultiCount, Set<StepInfo> startSteps, Set<ItemId> consumed, BuildChainBuilder builder, int endStepCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuildChainBuilderbuilder()Get a new build chain builder.BuildExecutionBuildercreateExecutionBuilder(String name)Create a new execution builder for this build chain.(package private) static BuildChainfromProviders(ClassLoader classLoader)Construct a build chain with the given name from providers found in the given class loader.(package private) static BuildChainfromProviders(Collection<BuildProvider> providers)Construct a deployment chain with the given name from the given providers.(package private) ClassLoadergetClassLoader()(package private) Set<ItemId>getConsumed()(package private) intgetEndStepCount()(package private) Set<ItemId>getFinalIds()(package private) intgetInitialMultiCount()(package private) intgetInitialSingleCount()(package private) List<StepInfo>getStartSteps()(package private) booleanhasInitial(ItemId itemId)
-
-
-
Constructor Detail
-
BuildChain
BuildChain(int initialSingleCount, int initialMultiCount, Set<StepInfo> startSteps, Set<ItemId> consumed, BuildChainBuilder builder, int endStepCount)
-
-
Method Detail
-
createExecutionBuilder
public BuildExecutionBuilder createExecutionBuilder(String name)
Create a new execution builder for this build chain.- Parameters:
name- the name of the build target for diagnostic purposes (must not benull)- Returns:
- the new build execution builder (not
null)
-
builder
public static BuildChainBuilder builder()
Get a new build chain builder.- Returns:
- the build chain builder (not
null)
-
fromProviders
static BuildChain fromProviders(ClassLoader classLoader) throws ChainBuildException
Construct a build chain with the given name from providers found in the given class loader.- Parameters:
classLoader- the class loader to use- Returns:
- the build chain (not
null) - Throws:
ChainBuildException- if building the chain failed
-
fromProviders
static BuildChain fromProviders(Collection<BuildProvider> providers) throws ChainBuildException
Construct a deployment chain with the given name from the given providers.- Parameters:
providers- the providers to use (must not benull)- Returns:
- the deployment chain (not
null) - Throws:
ChainBuildException- if building the chain failed
-
hasInitial
boolean hasInitial(ItemId itemId)
-
getInitialSingleCount
int getInitialSingleCount()
-
getInitialMultiCount
int getInitialMultiCount()
-
getClassLoader
ClassLoader getClassLoader()
-
getEndStepCount
int getEndStepCount()
-
-