public final class ServiceLoader extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
loadService(Class<T> serviceClass)
Loads the first of a list of service implementations defined in META-INF/services/${serviceClass}
|
static <T> List<T> |
loadServices(Class<T> serviceClass)
Loads a list of service implementations defined in META-INF/services/${serviceClass}
|
public static <T> List<T> loadServices(Class<T> serviceClass)
serviceClass
- The interface that is implemented by all loaded servicespublic static <T> T loadService(Class<T> serviceClass)
serviceClass
- The interface that is implemented by all loaded servicesCopyright © 2013 JBoss by Red Hat. All Rights Reserved.