Class DefaultPicoServicesProvider

java.lang.Object
io.helidon.pico.runtime.DefaultPicoServicesProvider
All Implemented Interfaces:
Resettable, PicoServicesProvider

@Singleton public class DefaultPicoServicesProvider extends Object implements PicoServicesProvider, Resettable
The default implementation for PicoServicesProvider. 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

    • DefaultPicoServicesProvider

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

    • services

      public PicoServices services(Bootstrap bootstrap)
      Description copied from interface: PicoServicesProvider
      Provide the Pico Services implementation given the provided primordial Bootstrap configuration instance.
      Specified by:
      services in interface PicoServicesProvider
      Parameters:
      bootstrap - the primordial bootstrap configuration
      Returns:
      pico 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