Class StaticServiceInstanceProvider
java.lang.Object
org.springframework.cloud.client.hypermedia.StaticServiceInstanceProvider
- All Implemented Interfaces:
ServiceInstanceProvider
A
ServiceInstanceProvider
that will always return the configured
ServiceInstance
.- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the service instance or null if the service is currently unavailable.
-
Constructor Details
-
StaticServiceInstanceProvider
-
-
Method Details
-
getServiceInstance
Description copied from interface:ServiceInstanceProvider
Returns the service instance or null if the service is currently unavailable.- Specified by:
getServiceInstance
in interfaceServiceInstanceProvider
- Returns:
- The service instance, or null if the service is currently unavailable.
-