public interface ServiceProvider<T>
extends java.io.Closeable
ProviderStrategy
paired with an InstanceProvider
Modifier and Type | Method and Description |
---|---|
ServiceInstance<T> |
getInstance()
Return an instance for a single use.
|
void |
start()
The provider must be started before use
|
void start() throws java.lang.Exception
java.lang.Exception
- any errorsServiceInstance<T> getInstance() throws java.lang.Exception
java.lang.Exception
- any errors