Module io.helidon.service.registry
Package io.helidon.service.registry
Class ActivationResult.BuilderBase<BUILDER extends ActivationResult.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ActivationResult>
java.lang.Object
io.helidon.service.registry.ActivationResult.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
ActivationResult.Builder
- Enclosing interface:
ActivationResult
public abstract static class ActivationResult.BuilderBase<BUILDER extends ActivationResult.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ActivationResult>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ActivationResult
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.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 void
Handles 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.boolean
success()
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 void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
startingActivationPhase
The activation phase that was found at onset of the phase transition.- Parameters:
startingActivationPhase
- the starting phase- Returns:
- updated builder instance
- See Also:
-
targetActivationPhase
The activation phase that was requested at the onset of the phase transition.- Parameters:
targetActivationPhase
- the target, desired, ultimate phase requested- Returns:
- updated builder instance
- See Also:
-
finishingActivationPhase
The activation phase we finished successfully on, or are otherwise currently in if not yet finished.- Parameters:
finishingActivationPhase
- the finishing phase- Returns:
- updated builder instance
- See Also:
-
clearError
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
error
Any throwable/exceptions that were observed during activation.- Parameters:
error
- any captured error- Returns:
- updated builder instance
- See Also:
-
success
Returns true if this result was successful.- Parameters:
success
- true if successful- Returns:
- updated builder instance
- See Also:
-
startingActivationPhase
The activation phase that was found at onset of the phase transition.- Returns:
- the starting activation phase
-
targetActivationPhase
The activation phase that was requested at the onset of the phase transition.- Returns:
- the target activation phase
-
finishingActivationPhase
The activation phase we finished successfully on, or are otherwise currently in if not yet finished.- Returns:
- the finishing activation phase
-
error
Any throwable/exceptions that were observed during activation.- Returns:
- the error
-
success
public boolean success()Returns true if this result was successful.- Returns:
- the success
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-