/** * Creates a new service loader for the given service type and class loader. * * @param service * The interface or abstract class representing the service * @param loader * The class loader to be used to load provider-configuration files and * provider classes, or <tt>null</tt> if the system class loader (or, * failing that, the bootstrap class loader) is to be used * @return A new service loader */ public static <S> ServiceLoaderBackport <S> load (final Class <S> service, final ClassLoader loader) { return new ServiceLoaderBackport <S> (service, loader); }