Interface InjectionResolver


@Deprecated(forRemoval=true, since="4.0.8") public interface InjectionResolver
Deprecated, for removal: This API element is subject to removal in a future version.
Helidon inject is deprecated and will be replaced in a future version
Implementors of this contract can assist with resolving injection points.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(InjectionPointInfo ipInfo, InjectionServices injectionServices, ServiceProvider<?> serviceProvider, boolean resolveIps)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Attempts to resolve the injection point info for a given service provider.
  • Method Details

    • resolve

      Optional<Object> resolve(InjectionPointInfo ipInfo, InjectionServices injectionServices, ServiceProvider<?> serviceProvider, boolean resolveIps)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Attempts to resolve the injection point info for a given service provider.

      There are two modes that injection resolvers run through. Phase 1 (resolveIps=false) is during the time when the injection plan is being formulated. This is the time we need to identify which ServiceProvider instances qualify. Phase 2 (resolveIps=true) is during actual resolution, and typically comes during the service activation lifecycle.

      Parameters:
      ipInfo - the injection point being resolved
      injectionServices - the services registry
      serviceProvider - the service provider this pertains to
      resolveIps - flag indicating whether injection points should be resolved
      Returns:
      the resolution for the plan or the injection point, or empty if unable to resolve the injection point context