public class ProviderBindingFunction extends Object implements BindingFunction
BindingFunction that enables provider-injection. This function supports just-in-time binding for injection points for Providers, that creates Providers wrapping whatever provided-type is necessary for that injection point.
As an example, Provider<Foo> would have a Provider of Foo
injected, and the Foo instances returned by that Provider's get() method
would be configured as if the injection point was for Foo.
| Constructor and Description |
|---|
ProviderBindingFunction() |
| Modifier and Type | Method and Description |
|---|---|
BindingResult |
bind(InjectionContext context,
DesireChain desires)
Find the applicable binding, if any, for a desire in a particular context.
|
public BindingResult bind(InjectionContext context, DesireChain desires) throws ResolutionException
BindingFunctionbind in interface BindingFunctioncontext - The context.desires - The desire.desire, or null if there is no binding.ResolutionException - If there is an error (such as ambiguous bindings).Copyright © 2016 GroupLens Research. All rights reserved.