public abstract class RestClientBuilderResolver
extends java.lang.Object
RestClientBuilder
implementation. A resolver should
extend this class and and be registered via the
ServiceLoader
mechanism or via
setInstance(RestClientBuilderResolver resolver)
.
This class is not intended to be used by end-users but for portable
integration purpose only to provide implementation of
RestClientBuilder
instances.
Implementations have to provide the newBuilder()
method to create custom
RestClientBuilder
implementations.
Modifier | Constructor and Description |
---|---|
protected |
RestClientBuilderResolver() |
Modifier and Type | Method and Description |
---|---|
static RestClientBuilderResolver |
instance()
Gets or creates a RestClientBuilderResolver instance.
|
abstract RestClientBuilder |
newBuilder()
Creates a new RestClientBuilder instance.
|
static void |
setInstance(RestClientBuilderResolver resolver)
Set the instance.
|
public abstract RestClientBuilder newBuilder()
Implementations are expected to override the newBuilder()
method
to create custom RestClientBuilder implementations.
public static RestClientBuilderResolver instance()
RestClientBuilder
public static void setInstance(RestClientBuilderResolver resolver)
resolver
- instance.