Class ServiceLoaderRegistry


  • class ServiceLoaderRegistry
    extends java.lang.Object
    Since:
    1.8
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static org.junit.platform.commons.logging.Logger getLogger()  
      (package private) static <T> java.lang.Iterable<T> load​(java.lang.Class<T> type)  
      (package private) static <T> java.lang.Iterable<T> load​(java.lang.Class<T> type, java.util.function.Predicate<java.lang.String> classNameFilter)  
      private static <T> java.util.List<T> load​(java.lang.Class<T> type, java.util.function.Predicate<java.lang.String> classNameFilter, java.util.function.Function<java.util.List<T>,​java.lang.String> logMessageSupplier)  
      private static <T> java.lang.String logLoadedInstances​(java.lang.Class<T> type, java.util.List<T> instances, java.util.List<java.lang.String> exclusions)  
      • Methods inherited from class java.lang.Object

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

      • ServiceLoaderRegistry

        ServiceLoaderRegistry()
    • Method Detail

      • load

        static <T> java.lang.Iterable<T> load​(java.lang.Class<T> type)
      • load

        static <T> java.lang.Iterable<T> load​(java.lang.Class<T> type,
                                              java.util.function.Predicate<java.lang.String> classNameFilter)
      • logLoadedInstances

        private static <T> java.lang.String logLoadedInstances​(java.lang.Class<T> type,
                                                               java.util.List<T> instances,
                                                               java.util.List<java.lang.String> exclusions)
      • load

        private static <T> java.util.List<T> load​(java.lang.Class<T> type,
                                                  java.util.function.Predicate<java.lang.String> classNameFilter,
                                                  java.util.function.Function<java.util.List<T>,​java.lang.String> logMessageSupplier)
      • getLogger

        private static org.junit.platform.commons.logging.Logger getLogger()