Class SpiHelper.ServiceLoaderComponentLoader

java.lang.Object
io.opentelemetry.sdk.autoconfigure.internal.SpiHelper.ServiceLoaderComponentLoader
All Implemented Interfaces:
ComponentLoader
Enclosing class:
SpiHelper

private static class SpiHelper.ServiceLoaderComponentLoader extends Object implements ComponentLoader
  • Field Details

  • Constructor Details

    • ServiceLoaderComponentLoader

      private ServiceLoaderComponentLoader(ClassLoader classLoader)
  • Method Details

    • load

      public <T> Iterable<T> load(Class<T> spiClass)
      Description copied from interface: ComponentLoader
      Load implementations of an SPI.
      Specified by:
      load in interface ComponentLoader
      Type Parameters:
      T - the SPI type
      Parameters:
      spiClass - the SPI class
      Returns:
      iterable of SPI implementations