public final class BuildStepBuilder extends Object
| Constructor and Description |
|---|
BuildStepBuilder(BuildChainBuilder buildChainBuilder) |
| Modifier and Type | Method and Description |
|---|---|
BuildStepBuilder |
afterProduce(Class<? extends BuildItem> type)
This build step should be initiated after any build steps which produce the given item
type are completed. |
BuildStepBuilder |
beforeConsume(Class<? extends BuildItem> type)
This build step should complete before any build steps which consume the given item
type are initiated. |
BuildStepBuilder |
beforeConsume(Class<? extends BuildItem> type,
ProduceFlag flag)
This build step should complete before any build steps which consume the given item
type are initiated. |
BuildChainBuilder |
build()
Build this step into the chain.
|
BuildChainBuilder |
buildIf(BooleanSupplier supp)
Build this step into the chain if the supplier returns
true. |
BuildStepBuilder |
consumes(Class<? extends BuildItem> type)
This build step consumes the given produced item.
|
BuildStepBuilder |
consumes(Class<? extends BuildItem> type,
ConsumeFlags flags)
This build step consumes the given produced item.
|
(package private) BuildStep |
getBuildStep() |
(package private) Map<ItemId,Consume> |
getConsumes() |
(package private) Map<ItemId,Produce> |
getProduces() |
(package private) Set<ItemId> |
getRealConsumes() |
(package private) Set<ItemId> |
getRealProduces() |
BuildStepBuilder |
produces(Class<? extends BuildItem> type)
Similarly to
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. |
BuildStepBuilder |
produces(Class<? extends BuildItem> type,
ProduceFlag flag)
Similarly to
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. |
BuildStepBuilder |
produces(Class<? extends BuildItem> type,
ProduceFlag flag1,
ProduceFlag flag2)
Similarly to
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. |
BuildStepBuilder |
produces(Class<? extends BuildItem> type,
ProduceFlags flags)
Similarly to
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. |
BuildStepBuilder |
setBuildStep(BuildStep buildStep)
Set the build step for this builder.
|
String |
toString() |
BuildStepBuilder(BuildChainBuilder buildChainBuilder)
public BuildStepBuilder setBuildStep(BuildStep buildStep)
buildStep - the build steppublic BuildStepBuilder beforeConsume(Class<? extends BuildItem> type)
type are initiated.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)public BuildStepBuilder beforeConsume(Class<? extends BuildItem> type, ProduceFlag flag)
type are initiated.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)flag - the producer flag to apply (must not be null)public BuildStepBuilder afterProduce(Class<? extends BuildItem> type)
type are completed.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)public BuildStepBuilder produces(Class<? extends BuildItem> type)
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. In addition, the
build step may produce an actual value for this item, which will be shared to all consumers during deployment.type - the item type (must not be null)public BuildStepBuilder produces(Class<? extends BuildItem> type, ProduceFlag flag)
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. In addition, the
build step may produce an actual value for this item, which will be shared to all consumers during deployment.type - the item type (must not be null)flag - the producer flag to apply (must not be null)public BuildStepBuilder produces(Class<? extends BuildItem> type, ProduceFlag flag1, ProduceFlag flag2)
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. In addition, the
build step may produce an actual value for this item, which will be shared to all consumers during deployment.type - the item type (must not be null)flag1 - the first producer flag to apply (must not be null)flag2 - the second producer flag to apply (must not be null)public BuildStepBuilder produces(Class<? extends BuildItem> type, ProduceFlags flags)
beforeConsume(Class), establish that this build step must come before the consumer(s) of the
given item type; however, only one producer may exist for the given item. In addition, the
build step may produce an actual value for this item, which will be shared to all consumers during deployment.type - the item type (must not be null)flags - the producer flag to apply (must not be null)public BuildStepBuilder consumes(Class<? extends BuildItem> type)
type - the item type (must not be null)public BuildStepBuilder consumes(Class<? extends BuildItem> type, ConsumeFlags flags)
type - the item type (must not be null)flags - a set of flags which modify the consume operation (must not be null)public BuildChainBuilder build()
public BuildChainBuilder buildIf(BooleanSupplier supp)
true.supp - the boolean supplier (must not be null)null if it was not addedBuildStep getBuildStep()
Copyright © 2021 JBoss by Red Hat. All rights reserved.