Module io.helidon.inject.api
Package io.helidon.inject.api
Class ActivationResult.BuilderBase<BUILDER extends ActivationResult.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ActivationResult>
java.lang.Object
io.helidon.inject.api.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 classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInjectionPlans(Map<? extends String, ? extends InjectionPlan> injectionPlans) This method keeps existing values, then puts all new values into the map.addResolvedDependencies(Map<? extends String, ?> resolvedDependencies) This method keeps existing values, then puts all new values into the map.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.error()Any throwable/exceptions that were observed during activation.Any throwable/exceptions that were observed during activation.Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.finishedActivationResult(Future<io.helidon.inject.api.ActivationResultBlueprint> finishedActivationResult) Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.The activation phase we finished successfully on, or are otherwise currently in if not yet finished.finishingActivationPhase(Phase finishingActivationPhase) The activation phase we finished successfully on, or are otherwise currently in if not yet finished.How did the activation finish.finishingStatus(ActivationStatus finishingStatus) How did the activation finish.from(ActivationResult prototype) Update this builder from an existing prototype instance.from(ActivationResult.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The injection plan that was found or determined, key'ed by each element'sServiceProvider.id().injectionPlans(Map<? extends String, ? extends InjectionPlan> injectionPlans) This method replaces all values with the new ones.protected voidHandles providers and decorators.The dependencies that were resolved or loaded, key'ed by each element'sServiceProvider.id().resolvedDependencies(Map<? extends String, ?> resolvedDependencies) This method replaces all values with the new ones.The service provider undergoing activation or deactivation.serviceProvider(ServiceProvider<?> serviceProvider) The service provider undergoing activation or deactivation.The activation phase that was found at onset of the phase transition.startingActivationPhase(Phase startingActivationPhase) The activation phase that was found at onset of the phase transition.The activation phase that was requested at the onset of the phase transition.targetActivationPhase(Phase targetActivationPhase) The activation phase that was requested at the onset of the phase transition.toString()protected voidValidates required properties.booleanSet to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.wasResolved(boolean wasResolved) Set to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.- 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
-
serviceProvider
The service provider undergoing activation or deactivation.- Parameters:
serviceProvider- the service provider generating the result- Returns:
- updated builder instance
- See Also:
-
clearFinishedActivationResult
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
finishedActivationResult
public BUILDER finishedActivationResult(Future<io.helidon.inject.api.ActivationResultBlueprint> finishedActivationResult) Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.- Parameters:
finishedActivationResult- the future result, assuming how activation can be async in nature- Returns:
- updated builder instance
- See Also:
-
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:
-
clearFinishingStatus
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
finishingStatus
How did the activation finish. Will only be populated if the lifecycle event has completed - seefinishedActivationResult().- Parameters:
finishingStatus- the finishing status- Returns:
- updated builder instance
- See Also:
-
injectionPlans
This method replaces all values with the new ones.- Parameters:
injectionPlans- the resolved injection plan map- Returns:
- updated builder instance
- See Also:
-
addInjectionPlans
This method keeps existing values, then puts all new values into the map.- Parameters:
injectionPlans- the resolved injection plan map- Returns:
- updated builder instance
- See Also:
-
resolvedDependencies
This method replaces all values with the new ones.- Parameters:
resolvedDependencies- the resolved dependency map- Returns:
- updated builder instance
- See Also:
-
addResolvedDependencies
This method keeps existing values, then puts all new values into the map.- Parameters:
resolvedDependencies- the resolved dependency map- Returns:
- updated builder instance
- See Also:
-
wasResolved
Set to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.- Parameters:
wasResolved- true if was resolved- 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:
-
serviceProvider
The service provider undergoing activation or deactivation.- Returns:
- the service provider
-
finishedActivationResult
Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.- Returns:
- the finished activation result
-
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
-
finishingStatus
How did the activation finish. Will only be populated if the lifecycle event has completed - seefinishedActivationResult().- Returns:
- the finishing status
-
injectionPlans
The injection plan that was found or determined, key'ed by each element'sServiceProvider.id().- Returns:
- the injection plans
-
resolvedDependencies
The dependencies that were resolved or loaded, key'ed by each element'sServiceProvider.id().- Returns:
- the resolved dependencies
-
wasResolved
public boolean wasResolved()Set to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.- Returns:
- the was resolved
-
error
Any throwable/exceptions that were observed during activation.- Returns:
- the error
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-