Package | Description |
---|---|
org.grouplens.grapht | |
org.grouplens.grapht.context | |
org.grouplens.grapht.reflect |
Interface for Grapht's use of Java reflection and type analysis.
|
org.grouplens.grapht.reflect.internal |
Implementation of Grapht reflection interfaces.
|
org.grouplens.grapht.solver |
Dependency resolution.
|
Modifier and Type | Method and Description |
---|---|
Satisfaction |
Component.getSatisfaction() |
Modifier and Type | Method and Description |
---|---|
static Component |
Component.create(Satisfaction satisfaction,
CachePolicy policy)
Create a new Component wrapping the given satisfaction and cache policy.
|
void |
Binding.toSatisfaction(Satisfaction sat)
Bind this binding directly to a satisfaction.
|
Modifier and Type | Method and Description |
---|---|
MatchElement |
ContextElementMatcher.apply(org.apache.commons.lang3.tuple.Pair<Satisfaction,InjectionPoint> n)
Return true if this ContextElementMatcher matches or applies to the given Satisfaction and
Qualifier.
|
Modifier and Type | Method and Description |
---|---|
Satisfaction |
Desire.getSatisfaction()
Get the satisfaction (concrete type) if this desire is fully resolved.
|
static Satisfaction |
Satisfactions.instance(Object o) |
static Satisfaction |
Satisfactions.nullOfType(Class<?> type) |
static Satisfaction |
Satisfactions.providerInstance(javax.inject.Provider<?> provider) |
static Satisfaction |
Satisfactions.providerType(Class<? extends javax.inject.Provider<?>> providerType) |
static Satisfaction |
Satisfactions.type(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
Desire |
Desire.restrict(Satisfaction satisfaction)
Return a new Desire that restricts the type of this desire to the erased
type of the satisfaction.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassSatisfaction
ClassSatisfaction is a satisfaction that instantiates instances of a given
type.
|
class |
InstanceSatisfaction
Satisfaction implementation wrapping an instance.
|
class |
NullSatisfaction
NullSatisfaction is a satisfaction that explicitly satisfies desires with the
null value. |
class |
ProviderClassSatisfaction
ProviderClassSatisfaction is a satisfaction implementation that satisfies a
type given a
Provider class capable of providing that type. |
class |
ProviderInstanceSatisfaction
Satisfaction implementation wrapping an existing Provider instance.
|
Modifier and Type | Method and Description |
---|---|
Satisfaction |
ReflectionDesire.getSatisfaction() |
Modifier and Type | Method and Description |
---|---|
Desire |
ReflectionDesire.restrict(Satisfaction satis) |
Constructor and Description |
---|
ReflectionDesire(Class<?> desiredType,
InjectionPoint injectPoint,
Satisfaction satisfaction)
Create a ReflectionDesire that represents the dependency for
desiredType that will be injected into the given InjectionPoint.
|
Modifier and Type | Method and Description |
---|---|
Satisfaction |
BindRuleBuilder.getSatisfaction()
Get the target satisfaction.
|
Modifier and Type | Method and Description |
---|---|
static InjectionContext |
InjectionContext.extend(InjectionContext prefix,
Satisfaction satisfaction,
InjectionPoint ip)
Extend or create an injection context.
|
InjectionContext |
InjectionContext.extend(Satisfaction satisfaction,
InjectionPoint ip)
Create a new context that is updated to have the satisfaction and attribute pushed to the
end of its type path.
|
BindRuleBuilder |
BindRuleBuilder.setSatisfaction(Satisfaction sat)
Set the satisfaction to bind to.
|
static InjectionContext |
InjectionContext.singleton(Satisfaction satisfaction)
Construct a singleton injection context with no attributes.
|
static InjectionContext |
InjectionContext.singleton(Satisfaction satisfaction,
InjectionPoint ip)
Construct a singleton injection context.
|
static BindRule |
BindRules.toSatisfaction(Class<?> depType,
QualifierMatcher qualifier,
Satisfaction satisfaction,
CachePolicy policy,
boolean terminal)
Deprecated.
Use
BindRuleBuilder . |
Copyright © 2016 GroupLens Research. All rights reserved.