public final class ElasticJobServiceLoader extends Object
| Constructor and Description |
|---|
ElasticJobServiceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends TypedSPI> |
getCachedTypedServiceInstance(Class<T> typedServiceInterface,
String type)
Get cached typed instance.
|
static <T extends TypedSPI> |
newTypedServiceInstance(Class<T> typedServiceInterface,
String type,
Properties props)
New typed instance.
|
static <T extends TypedSPI> |
registerTypedService(Class<T> typedService)
Register typeSPI service.
|
public static <T extends TypedSPI> void registerTypedService(Class<T> typedService)
T - class of servicetypedService - typed servicepublic static <T extends TypedSPI> Optional<T> getCachedTypedServiceInstance(Class<T> typedServiceInterface, String type)
T - class of servicetypedServiceInterface - typed service interfacetype - typepublic static <T extends TypedSPI> Optional<T> newTypedServiceInstance(Class<T> typedServiceInterface, String type, Properties props)
T - class of servicetypedServiceInterface - typed service interfacetype - typeprops - propertiesCopyright © 2021 The Apache Software Foundation. All rights reserved.