Interface ServiceClientFactory
- All Known Implementing Classes:
FeignServiceClientFactory
public interface ServiceClientFactory
Factory to build a client for a service.
-
Method Summary
Modifier and TypeMethodDescription<T> Tcreate(Class<T> type, ServiceEndpoint serviceEndpoint) Builds a concrete client capable of making HTTP calls.default booleansupports(Class<?> type, ServiceEndpoint serviceEndpoint) Decide if this factory can support the endpoint provided.
-
Method Details
-
create
Builds a concrete client capable of making HTTP calls.- Type Parameters:
T- type of client , usually an interface with all the remote method definitions.- Parameters:
type- client typeserviceEndpoint- endpoint configuration- Returns:
- an implementation of the type of client given.
-
supports
Decide if this factory can support the endpoint provided.- Parameters:
type- client typeserviceEndpoint- endpoint configuration- Returns:
- a client builder
-