public enum AsyncRestClientFactoryRegistry extends Enum<AsyncRestClientFactoryRegistry>
AsyncRestClientFactory registry.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
AsyncRestClient |
createRestClient(String fullyQualifiedClassName,
ClassLoader classLoader)
Get a
AsyncRestClient instance for given fullyQualifiedClassName and ClassLoader
using a suitable AsyncRestClientFactory. |
List<AsyncRestClientFactory> |
getRestClientFactories(String fullyQualifiedClassName,
ClassLoader classLoader)
Get the
AsyncRestClientFactory for given fullyQualifiedClassName AsyncRestClient
instance and ClassLoader. |
static AsyncRestClientFactoryRegistry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsyncRestClientFactoryRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsyncRestClientFactoryRegistry INSTANCE
public static AsyncRestClientFactoryRegistry[] values()
for (AsyncRestClientFactoryRegistry c : AsyncRestClientFactoryRegistry.values()) System.out.println(c);
public static AsyncRestClientFactoryRegistry 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 AsyncRestClient createRestClient(String fullyQualifiedClassName, ClassLoader classLoader)
AsyncRestClient instance for given fullyQualifiedClassName and ClassLoader
using a suitable AsyncRestClientFactory.fullyQualifiedClassName - AsyncRestClient class name to obtain, or null for the default
oneclassLoader - ClassLoader for which to obtain the AsyncRestClientAsyncRestClient instance for given fullyQualifiedClassName (or the default one
if null) and ClassLoaderRestClientCreationException - If no AsyncRestClientFactory available, or none of the available
factories returned a not null instance or a creation error occurredpublic List<AsyncRestClientFactory> getRestClientFactories(String fullyQualifiedClassName, ClassLoader classLoader)
AsyncRestClientFactory for given fullyQualifiedClassName AsyncRestClient
instance and ClassLoader.fullyQualifiedClassName - AsyncRestClientFactory class name to obtain, or null for the
default oneclassLoader - ClassLoader for which to obtain the factoryAsyncRestClientFactory for given fullyQualifiedClassName (or the default one if
null) and ClassLoaderRestClientCreationException - If no AsyncRestClientFactory available or a creation error occurredCopyright © 2019 The Holon Platform. All rights reserved.