/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will belong to the pool of unbound providers. It can be {@code null} if there is no such provider. * * @param clazz the class for which to obtain the unbound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the unbound provider. * @param <T> the type of {@code clazz}. * @return the unbound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such unbound provider. */ private <T> InternalProviderImpl<? extends T> getUnBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, false); }
/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will be bound to the scope. It can be {@code null} if there is no such provider. * Ancestors are not taken into account. * * @param clazz the class for which to obtain the bound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the bound provider. * @param <T> the type of {@code clazz}. * @return the bound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such bound provider. */ private <T> InternalProviderImpl<? extends T> getBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, true); }
/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will belong to the pool of unbound providers. It can be {@code null} if there is no such provider. * * @param clazz the class for which to obtain the unbound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the unbound provider. * @param <T> the type of {@code clazz}. * @return the unbound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such unbound provider. */ private <T> InternalProviderImpl<? extends T> getUnBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, false); }
/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will belong to the pool of unbound providers. It can be {@code null} if there is no such provider. * * @param clazz the class for which to obtain the unbound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the unbound provider. * @param <T> the type of {@code clazz}. * @return the unbound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such unbound provider. */ private <T> InternalProviderImpl<? extends T> getUnBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, false); }
/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will be bound to the scope. It can be {@code null} if there is no such provider. * Ancestors are not taken into account. * * @param clazz the class for which to obtain the bound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the bound provider. * @param <T> the type of {@code clazz}. * @return the bound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such bound provider. */ private <T> InternalProviderImpl<? extends T> getBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, true); }
/** * Obtains the provider of the class {@code clazz} and name {@code bindingName}, if any. The returned provider * will be bound to the scope. It can be {@code null} if there is no such provider. * Ancestors are not taken into account. * * @param clazz the class for which to obtain the bound provider. * @param bindingName the name, possibly {@code null}, for which to obtain the bound provider. * @param <T> the type of {@code clazz}. * @return the bound provider for class {@code clazz} and {@code bindingName}. Returns {@code null} is there * is no such bound provider. */ private <T> InternalProviderImpl<? extends T> getBoundProvider(Class<T> clazz, String bindingName) { return getInternalProvider(clazz, bindingName, true); }