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