Package | Description |
---|---|
org.grouplens.grapht | |
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 |
---|---|
Desire |
Dependency.getInitialDesire()
Convenience method to get the initial desire that prompted this dependency.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<Dependency> |
Dependency.hasInitialDesire(Desire d)
Create a predicate matching dependencies with the specified initial desire.
|
Modifier and Type | Method and Description |
---|---|
static Desire |
Desires.create(Annotation qualifier,
Class<?> type,
boolean nullable)
Create a new desire.
|
Desire |
Desire.restrict(Class<?> type)
Return a new Desire that restricts the type of this desire to the given
class.
|
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 | Method and Description |
---|---|
List<Desire> |
Satisfaction.getDependencies()
Get this satisfaction's dependencies.
|
Modifier and Type | Method and Description |
---|---|
Instantiator |
Satisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm)
Create an instantiator from this satisfaction.
|
Modifier and Type | Class and Description |
---|---|
class |
ReflectionDesire
ReflectionDesire is an implementation of desire that contains all necessary
implementation to represent a desire, except that the point of injection is
abstracted by an
InjectionPoint . |
Modifier and Type | Method and Description |
---|---|
Desire |
ReflectionDesire.restrict(Class<?> type) |
Desire |
ReflectionDesire.restrict(Satisfaction satis) |
Modifier and Type | Method and Description |
---|---|
List<Desire> |
ProviderInstanceSatisfaction.getDependencies() |
List<Desire> |
ProviderClassSatisfaction.getDependencies() |
List<Desire> |
NullSatisfaction.getDependencies() |
List<Desire> |
InstanceSatisfaction.getDependencies() |
List<Desire> |
ClassSatisfaction.getDependencies() |
static List<Desire> |
ReflectionDesire.getDesires(Class<?> type)
Return a list of desires that must satisfied in order to instantiate the
given type.
|
Modifier and Type | Method and Description |
---|---|
Instantiator |
ProviderInstanceSatisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm) |
Instantiator |
ProviderClassSatisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm) |
Instantiator |
NullSatisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm) |
Instantiator |
InstanceSatisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager injectionContainer) |
Instantiator |
ClassSatisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm) |
Constructor and Description |
---|
ClassInstantiator(Class<?> type,
List<Desire> desires,
Map<Desire,Instantiator> providers,
LifecycleManager manager)
Create an ClassInstantiator that will provide instances of the given
type, with given the list of desires and a function mapping that
satisfies those providers.
|
ClassInstantiator(Class<?> type,
List<Desire> desires,
Map<Desire,Instantiator> providers,
LifecycleManager manager)
Create an ClassInstantiator that will provide instances of the given
type, with given the list of desires and a function mapping that
satisfies those providers.
|
Modifier and Type | Method and Description |
---|---|
Desire |
BindRule.apply(Desire desire)
Apply this BindRule to the given Desire, and return a restricted and
possibly satisfied desire.
|
Desire |
DesireChain.getCurrentDesire() |
Desire |
UnresolvableDependencyException.getDesire()
Get the desire that failed to resolve.
|
Desire |
MultipleBindingsException.getDesire() |
Desire |
CyclicDependencyException.getDesire() |
Desire |
BindingResult.getDesire() |
Desire |
DesireChain.getInitialDesire() |
Modifier and Type | Method and Description |
---|---|
List<Desire> |
DesireChain.getPreviousDesires()
Return the list of desires up to, but not including, the current desire.
|
Modifier and Type | Method and Description |
---|---|
Desire |
BindRule.apply(Desire desire)
Apply this BindRule to the given Desire, and return a restricted and
possibly satisfied desire.
|
DesireChain |
DesireChain.extend(Desire d)
Extend this chain with a new desire.
|
DAGNode<Component,Dependency> |
DependencySolver.getBackEdge(DAGNode<Component,Dependency> parent,
Desire desire)
Get the back edge for a particular node and desire, if one exists.
|
static com.google.common.base.Predicate<DesireChain> |
DesireChain.hasInitialDesire(Desire d) |
boolean |
BindRule.matches(Desire desire) |
static BindingResult.Builder |
BindingResult.newBuilder(Desire desire,
CachePolicy policy) |
void |
DependencySolver.resolve(Desire desire)
Update the dependency graph to include the given desire.
|
BindingResult.Builder |
BindingResult.Builder.setDesire(Desire desire) |
static DesireChain |
DesireChain.singleton(Desire desire) |
Constructor and Description |
---|
CyclicDependencyException(Desire desire,
String msg) |
Copyright © 2016 GroupLens Research. All rights reserved.