Class SpiHelper.ServiceLoaderComponentLoader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ClassLoader classLoader  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ServiceLoaderComponentLoader​(java.lang.ClassLoader classLoader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.lang.Iterable<T> load​(java.lang.Class<T> spiClass)
      Load implementations of an SPI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • classLoader

        private final java.lang.ClassLoader classLoader
    • Constructor Detail

      • ServiceLoaderComponentLoader

        private ServiceLoaderComponentLoader​(java.lang.ClassLoader classLoader)
    • Method Detail

      • load

        public <T> java.lang.Iterable<T> load​(java.lang.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