Class SpiLoadFactory


  • public class SpiLoadFactory
    extends java.lang.Object
    SpiLoadFactory.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpiLoadFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <S> java.util.ServiceLoader<S> loadAll​(java.lang.Class<S> clazz)
      Load all service loader.
      static <S> S loadFirst​(java.lang.Class<S> clazz)
      Load first s.
      • Methods inherited from class java.lang.Object

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

      • SpiLoadFactory

        public SpiLoadFactory()
    • Method Detail

      • loadFirst

        public static <S> S loadFirst​(java.lang.Class<S> clazz)
        Load first s.
        Type Parameters:
        S - the type parameter
        Parameters:
        clazz - the clazz
        Returns:
        the s
      • loadAll

        public static <S> java.util.ServiceLoader<S> loadAll​(java.lang.Class<S> clazz)
        Load all service loader.
        Type Parameters:
        S - the type parameter
        Parameters:
        clazz - the clazz
        Returns:
        the service loader