public class DefaultDesireBindingFunction extends Object implements BindingFunction
DefaultImplementation
or
DefaultProvider
on the desired type or the qualifier. For constants,
it will also check for DefaultDouble
, DefaultInteger
,
DefaultBoolean
, and DefaultString
.Modifier and Type | Method and Description |
---|---|
BindingResult |
bind(InjectionContext context,
DesireChain dchain)
Find the applicable binding, if any, for a desire in a particular context.
|
static DefaultDesireBindingFunction |
create() |
static DefaultDesireBindingFunction |
create(ClassLoader loader) |
public static DefaultDesireBindingFunction create(ClassLoader loader)
public static DefaultDesireBindingFunction create()
public BindingResult bind(InjectionContext context, DesireChain dchain) throws ResolutionException
BindingFunction
bind
in interface BindingFunction
context
- The context.dchain
- 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.