public class StaticServiceInstanceProvider extends Object implements ServiceInstanceProvider
ServiceInstanceProvider
that will always return the configured
ServiceInstance
.Constructor and Description |
---|
StaticServiceInstanceProvider(ServiceInstance instance) |
Modifier and Type | Method and Description |
---|---|
ServiceInstance |
getServiceInstance()
Returns the service instance or null if the service is currently
unavailable.
|
public StaticServiceInstanceProvider(ServiceInstance instance)
public ServiceInstance getServiceInstance()
ServiceInstanceProvider
getServiceInstance
in interface ServiceInstanceProvider
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.