- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ActivationResult.BuilderBase.ActivationResultImpl
Deprecated.
Helidon inject is deprecated and will be replaced in a future version
Represents the result of a service activation or deactivation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.Fluent API builder forActivationResult.static classActivationResult.BuilderBase<BUILDER extends ActivationResult.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ActivationResult> Deprecated.Fluent API builder base forActivationResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivationResult.Builderbuilder()Deprecated.Create a new fluent API builder to customize configuration.static ActivationResult.Builderbuilder(ActivationResult instance) Deprecated.Create a new fluent API builder from an existing instance.static ActivationResultcreate()Deprecated.Create a new instance with default values.error()Deprecated, for removal: This API element is subject to removal in a future version.Any throwable/exceptions that were observed during activation.default booleanfailure()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result was unsuccessful.default booleanfinished()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result is finished.Deprecated, for removal: This API element is subject to removal in a future version.Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.Deprecated, for removal: This API element is subject to removal in a future version.The activation phase we finished successfully on, or are otherwise currently in if not yet finished.Deprecated, for removal: This API element is subject to removal in a future version.How did the activation finish.Deprecated, for removal: This API element is subject to removal in a future version.The injection plan that was found or determined, key'ed by each element'sServiceProvider.id().Deprecated, for removal: This API element is subject to removal in a future version.The dependencies that were resolved or loaded, key'ed by each element'sServiceProvider.id().Deprecated, for removal: This API element is subject to removal in a future version.The service provider undergoing activation or deactivation.Deprecated, for removal: This API element is subject to removal in a future version.The activation phase that was found at onset of the phase transition.default booleansuccess()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result was successful.Deprecated, for removal: This API element is subject to removal in a future version.The activation phase that was requested at the onset of the phase transition.booleanDeprecated, for removal: This API element is subject to removal in a future version.Set to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.
-
Method Details
-
builder
Deprecated.Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Deprecated.Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Deprecated.Create a new instance with default values.- Returns:
- a new instance
-
serviceProvider
ServiceProvider<?> serviceProvider()Deprecated, for removal: This API element is subject to removal in a future version.The service provider undergoing activation or deactivation.- Returns:
- the service provider generating the result
-
finishedActivationResult
Deprecated, for removal: This API element is subject to removal in a future version.Optionally, given by the implementation provider to indicate the future completion when the provider'sActivationStatusisActivationStatus.WARNING_SUCCESS_BUT_NOT_READY.- Returns:
- the future result, assuming how activation can be async in nature
-
startingActivationPhase
Phase startingActivationPhase()Deprecated, for removal: This API element is subject to removal in a future version.The activation phase that was found at onset of the phase transition.- Returns:
- the starting phase
-
targetActivationPhase
Phase targetActivationPhase()Deprecated, for removal: This API element is subject to removal in a future version.The activation phase that was requested at the onset of the phase transition.- Returns:
- the target, desired, ultimate phase requested
-
finishingActivationPhase
Phase finishingActivationPhase()Deprecated, for removal: This API element is subject to removal in a future version.The activation phase we finished successfully on, or are otherwise currently in if not yet finished.- Returns:
- the finishing phase
-
finishingStatus
Optional<ActivationStatus> finishingStatus()Deprecated, for removal: This API element is subject to removal in a future version.How did the activation finish. Will only be populated if the lifecycle event has completed - seefinishedActivationResult().- Returns:
- the finishing status
-
injectionPlans
Map<String,InjectionPlan> injectionPlans()Deprecated, for removal: This API element is subject to removal in a future version.The injection plan that was found or determined, key'ed by each element'sServiceProvider.id().- Returns:
- the resolved injection plan map
-
resolvedDependencies
Deprecated, for removal: This API element is subject to removal in a future version.The dependencies that were resolved or loaded, key'ed by each element'sServiceProvider.id().- Returns:
- the resolved dependency map
-
wasResolved
boolean wasResolved()Deprecated, for removal: This API element is subject to removal in a future version.Set to true if the injection plan inresolvedDependencies()has been resolved and can be "trusted" as being complete and accurate.- Returns:
- true if was resolved
-
error
Deprecated, for removal: This API element is subject to removal in a future version.Any throwable/exceptions that were observed during activation.- Returns:
- any captured error
-
finished
default boolean finished()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result is finished.- Returns:
- true if finished
-
success
default boolean success()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result was successful.- Returns:
- true if successful
-
failure
default boolean failure()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if this result was unsuccessful.- Returns:
- true if unsuccessful
-