io.ebeaninternal.server.core.ServiceUtil Maven / Gradle / Ivy
package io.ebeaninternal.server.core;
import java.util.Iterator;
import java.util.ServiceLoader;
public final class ServiceUtil {
public static S service(Class cls) {
ServiceLoader load = ServiceLoader.load(cls);
Iterator serviceInstances = load.iterator();
return serviceInstances.hasNext() ? serviceInstances.next() : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy