RestClientBuilder implementation. A resolver should extend this class and and be registered
via the java.util.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 and Type | Field and Description |
|---|---|
| private static volatile RestClientBuilderResolver |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static RestClientBuilderResolver | Returns: an instance of RestClientBuilderResolverGets or creates a RestClientBuilderResolver instance. |
| private static RestClientBuilderResolver | |
| public abstract RestClientBuilder | |
| public static void |
| instance | back to summary |
|---|---|
| private static volatile RestClientBuilderResolver instance | |
| RestClientBuilderResolver | back to summary |
|---|---|
| protected RestClientBuilderResolver() | |
| instance | back to summary |
|---|---|
| public static RestClientBuilderResolver instance() Gets or creates a RestClientBuilderResolver instance. Only used internally from within
| |
| loadSpi | back to summary |
|---|---|
| private static RestClientBuilderResolver loadSpi(ClassLoader cl) | |
| newBuilder | back to summary |
|---|---|
| public abstract RestClientBuilder newBuilder() Creates a new RestClientBuilder instance.
Implementations are expected to override the
| |
| setInstance | back to summary |
|---|---|
| public static void setInstance(RestClientBuilderResolver resolver) Set the instance. It can be as an alternative to service loader pattern, e.g. in OSGi environment
| |