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 in case the service is currently unavailable.
|
public StaticServiceInstanceProvider(ServiceInstance instance)
public ServiceInstance getServiceInstance()
ServiceInstanceProvider
getServiceInstance
in interface ServiceInstanceProvider
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.