public class EnhancedServiceLoader extends Object
| 构造器和说明 |
|---|
EnhancedServiceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <S> S |
load(Class<S> service)
load service provider
|
static <S> S |
load(Class<S> service,
ClassLoader loader)
Specify classLoader to load the service provider
|
static <S> S |
load(Class<S> service,
String activateName)
load service provider
|
static <S> S |
load(Class<S> service,
String activateName,
Class[] argsType,
Object[] args)
Load s.
|
static <S> S |
load(Class<S> service,
String activateName,
ClassLoader loader)
Specify classLoader to load the service provider
|
static <S> S |
load(Class<S> service,
String activateName,
Object[] args)
Load s.
|
static <S> List<S> |
loadAll(Class<S> service)
get all implements
|
static <S> List<S> |
loadAll(Class<S> service,
Class[] argsType,
Object[] args)
get all implements
|
public static <S> S load(Class<S> service, ClassLoader loader) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceloader - the loaderEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> S load(Class<S> service) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> S load(Class<S> service, String activateName) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceactivateName - the activate nameEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> S load(Class<S> service, String activateName, ClassLoader loader) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceactivateName - the activate nameloader - the loaderEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> S load(Class<S> service, String activateName, Object[] args) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceactivateName - the activate nameargs - the argsEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> S load(Class<S> service, String activateName, Class[] argsType, Object[] args) throws EnhancedServiceNotFoundException
S - the type parameterservice - the serviceactivateName - the activate nameargsType - the args typeargs - the argsEnhancedServiceNotFoundException - the enhanced service not found exceptionpublic static <S> List<S> loadAll(Class<S> service)
S - the type parameterservice - the serviceCopyright © 2020 Seata. All rights reserved.