public interface RestClientFactory
RestClient instances.
RestClientFactory registration can be performed using default Java extension through ServiceLoader, providing
a com.holonplatform.http.rest.RestClientFactory file in META-INF/services containing the
RestClientFactory concrete class names to register.
The RestClientFactoryRegistry supports RestClientFactorys priority declaration using the
Priority annotation on factory class (where less priority value means higher priority order).
RestClientFactoryRegistry| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRIORITY
Default factory priority
|
| Modifier and Type | Method and Description |
|---|---|
RestClient |
create(ClassLoader classLoader)
Create a new
RestClient instance. |
Class<?> |
getRestClientImplementationClass()
Get the
RestClient implementation class returned by this factory. |
static final int DEFAULT_PRIORITY
Class<?> getRestClientImplementationClass()
RestClient implementation class returned by this factory.RestClient implementation classRestClient create(ClassLoader classLoader) throws RestClientCreationException
RestClient instance.classLoader - The ClassLoader for which the instance creation is requestedRestClient instanceRestClientCreationException - If an error occurredCopyright © 2017 The Holon Platform. All rights reserved.