public class RecommenderGraphBuilder
extends java.lang.Object
Build recommender graphs. You probably don’t want to use this class.
| Constructor and Description |
|---|
RecommenderGraphBuilder() |
| Modifier and Type | Method and Description |
|---|---|
RecommenderGraphBuilder |
addBindings(BindingFunctionBuilder bld)
Add bindings to the graph builder.
|
RecommenderGraphBuilder |
addConfiguration(LenskitConfiguration config)
Add a recommender configuration.
|
RecommenderGraphBuilder |
addRoots(java.lang.Iterable<java.lang.Class<?>> classes)
Add roots to the graph builder.
|
DependencySolver |
buildDependencySolver()
Build a dependency solver from the provided bindings.
|
DependencySolver |
buildDependencySolverImpl(org.lenskit.inject.RecommenderGraphBuilder.SolveDirection direction) |
DependencySolver |
buildDependencyUnsolver()
Build a dependency ‘unsolver’ from the provided bindings.
|
DAGNode<Component,Dependency> |
buildGraph() |
void |
setClassLoader(java.lang.ClassLoader loader) |
public void setClassLoader(java.lang.ClassLoader loader)
public RecommenderGraphBuilder addBindings(BindingFunctionBuilder bld)
Add bindings to the graph builder. Bindings added to this builder are processed in the reverse order as DependencySolverBuilder - add the most important bindings last.
bld - A builder of the bindings to add.public RecommenderGraphBuilder addRoots(java.lang.Iterable<java.lang.Class<?>> classes)
Add roots to the graph builder.
classes - Root types for the graph.public RecommenderGraphBuilder addConfiguration(LenskitConfiguration config)
Add a recommender configuration.
config - The configuration.public DependencySolver buildDependencySolver()
Build a dependency solver from the provided bindings.
public DependencySolver buildDependencyUnsolver()
Build a dependency ‘unsolver’ from the provided bindings. The resulting solver, when rewriting a graph, will replace bound targets with placeholders.
public DependencySolver buildDependencySolverImpl(org.lenskit.inject.RecommenderGraphBuilder.SolveDirection direction)
public DAGNode<Component,Dependency> buildGraph() throws ResolutionException
ResolutionException