Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractActivationRequest.Builder<B extends AbstractActivationRequest.Builder<B,T>,T extends ActivationRequest>
java.lang.Object
io.helidon.pico.api.AbstractActivationRequest.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ActivationRequest,Supplier<T>
- Direct Known Subclasses:
DefaultActivationRequest.Builder
- Enclosing class:
AbstractActivationRequest
public abstract static class AbstractActivationRequest.Builder<B extends AbstractActivationRequest.Builder<B,T>,T extends ActivationRequest>
extends Object
implements ActivationRequest, Builder<B,T>
Fluent API builder for
T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Optionally, the injection point context information.Setter for 'injectionPoint'.Setter for 'injectionPoint'.The phase to start activation.startingPhase(Phase val) Setter for 'startingPhase'.startingPhase(Optional<Phase> val) Setter for 'startingPhase'.Ultimate target phase for activation.targetPhase(Phase val) Setter for 'targetPhase'.booleanWhether to throw an exception on failure to activate, or return an error activation result on activation.throwIfError(boolean val) Setter for 'throwIfError'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ActivationRequest, calling theAttributeVisitorfor each.
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
injectionPoint
Description copied from interface:ActivationRequestOptionally, the injection point context information.- Specified by:
injectionPointin interfaceActivationRequest- Returns:
- injection point info
-
startingPhase
Description copied from interface:ActivationRequestThe phase to start activation. Typically, this should be left as the default (i.e., PENDING).- Specified by:
startingPhasein interfaceActivationRequest- Returns:
- phase to start
-
targetPhase
Description copied from interface:ActivationRequestUltimate target phase for activation.- Specified by:
targetPhasein interfaceActivationRequest- Returns:
- phase to target
-
throwIfError
public boolean throwIfError()Description copied from interface:ActivationRequestWhether to throw an exception on failure to activate, or return an error activation result on activation.- Specified by:
throwIfErrorin interfaceActivationRequest- Returns:
- whether to throw on failure
-
injectionPoint
Setter for 'injectionPoint'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPoint
Setter for 'injectionPoint'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
startingPhase
Setter for 'startingPhase'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
startingPhase
Setter for 'startingPhase'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
targetPhase
Setter for 'targetPhase'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
throwIfError
Setter for 'throwIfError'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.ActivationRequest, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-