cl = cl.getParent (); return ServiceLoaderBackport.load (service, prev);
/** * Creates a new service loader for the given service type, using the current * thread's {@linkplain java.lang.Thread#getContextClassLoader context class * loader}. * <p> * An invocation of this convenience method of the form <blockquote> * * <pre> * ServiceLoader.load(<i>service</i>) * </pre> * * </blockquote> is equivalent to <blockquote> * * <pre> * ServiceLoader.load(<i>service</i>, * Thread.currentThread().getContextClassLoader()) * </pre> * * </blockquote> * * @param service * The interface or abstract class representing the service * @return A new service loader */ public static <S> ServiceLoaderBackport <S> load (final Class <S> service) { return load (service, ClassHelper.getDefaultClassLoader ()); }
ServiceLoaderBackport.<T> load (aSPIClass, aClassLoader);