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 |
---|---|
CachePolicy |
Component.getCachePolicy() |
static CachePolicy |
CachePolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachePolicy[] |
CachePolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static InjectionContainer |
InjectionContainer.create(CachePolicy dft)
Create a new instantiator without a lifecycle manager.
|
static InjectionContainer |
InjectionContainer.create(CachePolicy dft,
LifecycleManager mgr)
Create a new instantiator.
|
static Component |
Component.create(Satisfaction satisfaction,
CachePolicy policy)
Create a new Component wrapping the given satisfaction and cache policy.
|
InjectorBuilder |
InjectorBuilder.setDefaultCachePolicy(CachePolicy policy)
Set the default cache policy used by injectors created by this builder.
|
Modifier and Type | Method and Description |
---|---|
CachePolicy |
Satisfaction.getDefaultCachePolicy()
Get the default cache policy for instances created by this satisfaction.
|
Modifier and Type | Method and Description |
---|---|
CachePolicy |
ProviderInstanceSatisfaction.getDefaultCachePolicy() |
CachePolicy |
ProviderClassSatisfaction.getDefaultCachePolicy() |
CachePolicy |
NullSatisfaction.getDefaultCachePolicy() |
CachePolicy |
InstanceSatisfaction.getDefaultCachePolicy() |
CachePolicy |
ClassSatisfaction.getDefaultCachePolicy() |
Modifier and Type | Method and Description |
---|---|
CachePolicy |
BindRuleBuilder.getCachePolicy()
Get the cache policy.
|
CachePolicy |
BindRule.getCachePolicy()
Get the rule's cache policy.
|
CachePolicy |
BindingResult.getCachePolicy() |
CachePolicy |
DependencySolverBuilder.getDefaultPolicy()
Get the current default policy.
|
Modifier and Type | Method and Description |
---|---|
static BindingResult.Builder |
BindingResult.newBuilder(Desire desire,
CachePolicy policy) |
BindRuleBuilder |
BindRuleBuilder.setCachePolicy(CachePolicy policy)
Set the cache policy.
|
BindingResult.Builder |
BindingResult.Builder.setCachePolicy(CachePolicy policy) |
DependencySolverBuilder |
DependencySolverBuilder.setDefaultPolicy(CachePolicy policy)
Set the default policy for the solver.
|
static BindRule |
BindRules.toClass(Class<?> depType,
QualifierMatcher qualifier,
Class<?> implType,
CachePolicy policy,
boolean terminal)
Deprecated.
Use
BindRuleBuilder . |
static BindRule |
BindRules.toSatisfaction(Class<?> depType,
QualifierMatcher qualifier,
Satisfaction satisfaction,
CachePolicy policy,
boolean terminal)
Deprecated.
Use
BindRuleBuilder . |
Constructor and Description |
---|
DefaultInjector(CachePolicy defaultPolicy,
BindingFunction... functions)
Create a new DefaultInjector.
|
DefaultInjector(CachePolicy defaultPolicy,
int maxDepth,
BindingFunction... functions)
Create a new DefaultInjector.
|
Copyright © 2016 GroupLens Research. All rights reserved.