public class ServiceUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVICES_ROOT |
Constructor and Description |
---|
ServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
loadServices(Class<T> clazz)
Calls
#loadServices(java.lang.Class, java.lang.String) with resource as the
default location: META-INF/services/[classname]. |
public static final String SERVICES_ROOT
public static <T> Set<T> loadServices(Class<T> clazz) throws IOException
#loadServices(java.lang.Class, java.lang.String)
with resource as the
default location: META-INF/services/[classname].T
- The type of the services to loadclazz
- The class that the services have to implementIOException