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.
|
Modifier and Type | Method and Description |
---|---|
Instantiator |
InjectionContainer.makeInstantiator(DAGNode<Component,Dependency> node)
Get a provider that, when invoked, will return an instance of the component represented
by a graph.
|
Instantiator |
InjectionContainer.makeInstantiator(DAGNode<Component,Dependency> node,
com.google.common.collect.SetMultimap<DAGNode<Component,Dependency>,DAGEdge<Component,Dependency>> backEdges)
Get a provider that, when invoked, will return an instance of the component represented
by a graph with back edges.
|
static Instantiator |
Instantiators.memoize(Instantiator instantiator)
Memoize an instantiator.
|
static Instantiator |
Instantiators.ofInstance(Object inst)
Create an instantiator that returns an instance.
|
static Instantiator |
Instantiators.ofNull(Class<?> type)
Create an instantiator that returns a null value.
|
static Instantiator |
Instantiators.ofProvider(javax.inject.Provider<?> provider)
Convert a providerInstantiator to an instantiator.
|
static Instantiator |
Instantiators.ofProviderInstantiator(Instantiator pinst)
Flatten an instnatiator of providers into an instantiator of the provided type.
|
Modifier and Type | Method and Description |
---|---|
static Instantiator |
Instantiators.memoize(Instantiator instantiator)
Memoize an instantiator.
|
static Instantiator |
Instantiators.ofProviderInstantiator(Instantiator pinst)
Flatten an instnatiator of providers into an instantiator of the provided type.
|
static javax.inject.Provider<?> |
Instantiators.toProvider(Instantiator instantiator)
Convert an instantiator to a provider.
|
Modifier and Type | Method and Description |
---|---|
Instantiator |
Satisfaction.makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm)
Create an instantiator from this satisfaction.
|
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 |
ClassInstantiator
Instantiates class instances.
|
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) |
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.
|
Copyright © 2016 GroupLens Research. All rights reserved.