public enum ReactiveRestClientFactoryRegistry extends Enum<ReactiveRestClientFactoryRegistry>
ReactiveRestClientFactory registry.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ReactiveRestClient |
createRestClient(String fullyQualifiedClassName,
ClassLoader classLoader)
Get a
ReactiveRestClient instance for given fullyQualifiedClassName and ClassLoader
using a suitable ReactiveRestClientFactory. |
List<ReactiveRestClientFactory> |
getRestClientFactories(String fullyQualifiedClassName,
ClassLoader classLoader)
Get the
ReactiveRestClientFactory for given fullyQualifiedClassName
ReactiveRestClient instance and ClassLoader. |
static ReactiveRestClientFactoryRegistry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReactiveRestClientFactoryRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReactiveRestClientFactoryRegistry INSTANCE
public static ReactiveRestClientFactoryRegistry[] values()
for (ReactiveRestClientFactoryRegistry c : ReactiveRestClientFactoryRegistry.values()) System.out.println(c);
public static ReactiveRestClientFactoryRegistry valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ReactiveRestClient createRestClient(String fullyQualifiedClassName, ClassLoader classLoader)
ReactiveRestClient instance for given fullyQualifiedClassName and ClassLoader
using a suitable ReactiveRestClientFactory.fullyQualifiedClassName - ReactiveRestClient class name to obtain, or null for the
default oneclassLoader - ClassLoader for which to obtain the ReactiveRestClientReactiveRestClient instance for given fullyQualifiedClassName (or the default
one if null) and ClassLoadercom.holonplatform.http.exceptions.RestClientCreationException - If no ReactiveRestClientFactory available, or none of the available
factories returned a not null instance or a creation error occurredpublic List<ReactiveRestClientFactory> getRestClientFactories(String fullyQualifiedClassName, ClassLoader classLoader)
ReactiveRestClientFactory for given fullyQualifiedClassName
ReactiveRestClient instance and ClassLoader.fullyQualifiedClassName - ReactiveRestClientFactory class name to obtain, or null for
the default oneclassLoader - ClassLoader for which to obtain the factoryReactiveRestClientFactory for given fullyQualifiedClassName (or the default one if
null) and ClassLoadercom.holonplatform.http.exceptions.RestClientCreationException - If no ReactiveRestClientFactory available or a creation error
occurredCopyright © 2019 The Holon Platform. All rights reserved.