Interface ProviderStrategy<T>

    • Method Detail

      • getInstance

        ServiceInstance<T> getInstance​(InstanceProvider<T> instanceProvider)
                                throws java.lang.Exception
        Given a source of instances, return one of them for a single use.
        Parameters:
        instanceProvider - the instance provider
        Returns:
        the instance to use
        Throws:
        java.lang.Exception - any errors