Interface ProviderWithExtensionVisitor<T>

    • Method Detail

      • acceptExtensionVisitor

        <B,​V> V acceptExtensionVisitor​(BindingTargetVisitor<B,​V> visitor,
                                             ProviderInstanceBinding<? extends B> binding)
        Instructs the extension determine if the visitor is an instance of a custom extension visitor, and if so, visit it using that method. If the visitor is not an instance of the custom extension visitor, this method MUST call visitor.visit(binding).

        Due to issues with generics, the type parameters of this method do not relate to the type of the provider. In practice, the 'B' type will always be a supertype of 'T'.