public interface ProviderStrategy<T>
Modifier and Type | Method and Description |
---|---|
ServiceInstance<T> |
getInstance(InstanceProvider<T> instanceProvider)
Given a source of instances, return one of them for a single use.
|
ServiceInstance<T> getInstance(InstanceProvider<T> instanceProvider) throws java.lang.Exception
instanceProvider
- the instance providerjava.lang.Exception
- any errors