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