Class ActivationResult.Builder
java.lang.Object
io.helidon.service.registry.ActivationResult.BuilderBase<ActivationResult.Builder, ActivationResult>
io.helidon.service.registry.ActivationResult.Builder
- All Implemented Interfaces:
Prototype.Builder<ActivationResult.Builder, ActivationResult>, Builder<ActivationResult.Builder, ActivationResult>, Supplier<ActivationResult>
- Enclosing interface:
ActivationResult
public static class ActivationResult.Builder
extends ActivationResult.BuilderBase<ActivationResult.Builder, ActivationResult>
implements Builder<ActivationResult.Builder, ActivationResult>
Fluent API builder for
ActivationResult.-
Nested Class Summary
Nested classes/interfaces inherited from class ActivationResult.BuilderBase
ActivationResult.BuilderBase.ActivationResultImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ActivationResult.BuilderBase
clearError, error, error, finishingActivationPhase, finishingActivationPhase, from, from, preBuildPrototype, startingActivationPhase, startingActivationPhase, success, success, targetActivationPhase, targetActivationPhase, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of error.error()Any throwable/exceptions that were observed during activation.Any throwable/exceptions that were observed during activation.The activation phase we finished successfully on, or are otherwise currently in if not yet finished.finishingActivationPhase(ActivationPhase finishingActivationPhase) The activation phase we finished successfully on, or are otherwise currently in if not yet finished.from(ActivationResult prototype) Update this builder from an existing prototype instance.from(ActivationResult.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.The activation phase that was found at onset of the phase transition.startingActivationPhase(ActivationPhase startingActivationPhase) The activation phase that was found at onset of the phase transition.booleansuccess()Returns true if this result was successful.success(boolean success) Returns true if this result was successful.The activation phase that was requested at the onset of the phase transition.targetActivationPhase(ActivationPhase targetActivationPhase) The activation phase that was requested at the onset of the phase transition.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ActivationResultget()default ActivationResult.Builderidentity()Instance of this builder as the correct type.default ActivationResult.Builderupdate(Consumer<ActivationResult.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ActivationResult.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ActivationResult.Builder, ActivationResult>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ActivationResult.Builder, ActivationResult>- Returns:
- instance of the built type
-