Class DiscoveryClientVaultServiceInstanceProvider
- java.lang.Object
-
- org.springframework.cloud.vault.config.DiscoveryClientVaultServiceInstanceProvider
-
- All Implemented Interfaces:
VaultServiceInstanceProvider
public class DiscoveryClientVaultServiceInstanceProvider extends Object implements VaultServiceInstanceProvider
Provider forServiceInstanceto look up the Vault service.- Since:
- 1.1
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description DiscoveryClientVaultServiceInstanceProvider(org.springframework.cloud.client.discovery.DiscoveryClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.cloud.client.ServiceInstancegetVaultServerInstance(String serviceId)LookupServiceInstancebyserviceId.
-
-
-
Method Detail
-
getVaultServerInstance
public org.springframework.cloud.client.ServiceInstance getVaultServerInstance(String serviceId)
Description copied from interface:VaultServiceInstanceProviderLookupServiceInstancebyserviceId.- Specified by:
getVaultServerInstancein interfaceVaultServiceInstanceProvider- Parameters:
serviceId- the service Id.- Returns:
ServiceInstancefor the givenserviceId.
-
-