public final class NewInstanceServiceLoader extends Object
| Constructor and Description |
|---|
NewInstanceServiceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collection<T> |
newServiceInstances(Class<T> service)
New service instances.
|
static <T> void |
register(Class<T> service)
Register SPI service into map for new instance.
|
public static <T> void register(Class<T> service)
T - type of serviceservice - service typepublic static <T> Collection<T> newServiceInstances(Class<T> service)
T - type of serviceservice - service classCopyright © 2019 The Apache Software Foundation. All rights reserved.