public class NacosServiceLoader extends Object
| 构造器和说明 |
|---|
NacosServiceLoader() |
public static <T> Collection<T> load(Class<T> service)
Load service by SPI and cache the classes for reducing cost when load second time.
T - type of serviceservice - service classpublic static <T> Collection<T> newServiceInstances(Class<T> service)
T - type of serviceservice - service classCopyright © 2018–2024 Alibaba Group. All rights reserved.