Class DefaultInjectionServicesProvider

java.lang.Object
io.helidon.inject.runtime.DefaultInjectionServicesProvider
All Implemented Interfaces:
Resettable, InjectionServicesProvider

@Singleton public class DefaultInjectionServicesProvider extends Object implements InjectionServicesProvider, Resettable
The default implementation for InjectionServicesProvider. The first instance created (or first after calling deep reset(boolean)) will be the global services instance. The global instance will track the set of loaded modules and applications that are loaded by this JVM.
See Also:
  • Constructor Details

    • DefaultInjectionServicesProvider

      @Deprecated public DefaultInjectionServicesProvider()
      Deprecated.
      this is a Java ServiceLoader implementation and the constructor should not be used directly
      Service loader based constructor.
  • Method Details

    • services

      public InjectionServices services(io.helidon.inject.api.Bootstrap bootstrap)
      Description copied from interface: InjectionServicesProvider
      Provide the Injection Services implementation given the provided primordial Bootstrap configuration instance.
      Specified by:
      services in interface InjectionServicesProvider
      Parameters:
      bootstrap - the primordial bootstrap configuration
      Returns:
      services instance configured with the provided bootstrap instance
    • reset

      public boolean reset(boolean deep)
      Description copied from interface: Resettable
      Resets the state of this object.
      Specified by:
      reset in interface Resettable
      Parameters:
      deep - true to iterate over any contained objects, to reflect the reset into the retained object
      Returns:
      returns true if the state was changed