public final class NewInstanceServiceLoader extends Object
| 构造器和说明 |
|---|
NewInstanceServiceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2020 The Apache Software Foundation. All rights reserved.