public class ServiceLoaderFactory extends Object
Gets a service loader that is able to retrieve services implementation.
The service loader implementation is retrieved from system properties (see AbstractServiceLoader), if none is
found, a AbstractServiceLoader is used.
Usage:
MyInterface obj = ServiceLoaderFactory.getServiceLoader().getService(MyInterface.class);
| Modifier and Type | Method and Description |
|---|---|
static ServiceLoader |
getServiceLoader()
Gets a service loader unique instance.
|
public static ServiceLoader getServiceLoader()