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. |
<N> BuildStepBuilder |
afterProduce(Class<? extends NamedBuildItem<N>> type,
N name)
This build step should be initiated after any build steps which produce the given item
type are completed. |
BuildStepBuilder |
afterVirtual(Enum<?> symbolic)
Declare that the build step "consumes" a virtual item with the given identifier.
|
BuildStepBuilder |
afterVirtual(Enum<?> symbolic,
ConsumeFlags flags)
Declare that the build step "consumes" a virtual item with the given identifier.
|
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. |
<N> BuildStepBuilder |
beforeConsume(Class<? extends NamedBuildItem<N>> type,
N name)
This build step should complete before any build steps which consume the given item
type are initiated. |
<N> BuildStepBuilder |
beforeConsume(Class<? extends NamedBuildItem<N>> type,
N name,
ProduceFlag flag)
This build step should complete before any build steps which consume the given item
type are initiated. |
BuildStepBuilder |
beforeVirtual(Enum<?> symbolic)
Declare that the build step "produces" a virtual item with the given identifier.
|
BuildStepBuilder |
beforeVirtual(Enum<?> symbolic,
ProduceFlag flag)
Declare that the build step "produces" a virtual item with the given identifier.
|
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.
|
<N> BuildStepBuilder |
consumes(Class<? extends NamedBuildItem<N>> type,
N name)
This build step consumes the given produced item.
|
<N> BuildStepBuilder |
consumes(Class<? extends NamedBuildItem<N>> type,
N name,
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,
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. |
<N> BuildStepBuilder |
produces(Class<? extends NamedBuildItem<N>> type,
N name)
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. |
<N> BuildStepBuilder |
produces(Class<? extends NamedBuildItem<N>> type,
N name,
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 |
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 <N> BuildStepBuilder beforeConsume(Class<? extends NamedBuildItem<N>> type, N name)
type are initiated.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)name - the build item name (must not be null)public <N> BuildStepBuilder beforeConsume(Class<? extends NamedBuildItem<N>> type, N name, ProduceFlag flag)
type are initiated.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)name - the build item name (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 <N> BuildStepBuilder afterProduce(Class<? extends NamedBuildItem<N>> type, N name)
type are completed.
If no such build steps exist, no ordering constraint is enacted.type - the item type (must not be null)name - the build item name (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, 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 <N> BuildStepBuilder produces(Class<? extends NamedBuildItem<N>> type, N name)
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)name - the build item name (must not be null)public <N> BuildStepBuilder produces(Class<? extends NamedBuildItem<N>> type, N name, 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)name - the build item name (must not be null)flag - the producer flag to apply (must not be null)public BuildStepBuilder beforeVirtual(Enum<?> symbolic)
symbolic - the item identifier (must not be null)public BuildStepBuilder beforeVirtual(Enum<?> symbolic, ProduceFlag flag)
symbolic - the item identifier (must not be null)flag - 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 <N> BuildStepBuilder consumes(Class<? extends NamedBuildItem<N>> type, N name)
type - the item type (must not be null)name - the build item name (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 <N> BuildStepBuilder consumes(Class<? extends NamedBuildItem<N>> type, N name, 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 BuildStepBuilder afterVirtual(Enum<?> symbolic)
symbolic - the item identifier (must not be null)public BuildStepBuilder afterVirtual(Enum<?> symbolic, ConsumeFlags flags)
symbolic - the item identifier (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 © 2019 JBoss by Red Hat. All rights reserved.