public class LenskitConfiguration extends AbstractConfigContext
LenskitRecommenderEngine.build(LenskitConfiguration)
to build a recommender engine, or LenskitRecommender.build(LenskitConfiguration)
to skip the engine and just build a recommender.Compatibility: Public
Constructor and Description |
---|
LenskitConfiguration() |
LenskitConfiguration(LenskitConfiguration other)
Create a new copy of a LensKit configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addRoot(java.lang.Class<?> componentType)
Add the specified component type as a root component.
|
LenskitConfigContext |
at(java.lang.annotation.Annotation qualifier,
java.lang.Class<?> type) |
LenskitConfigContext |
at(java.lang.Class<?> type) |
LenskitConfigContext |
at(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier,
java.lang.Class<?> type) |
<T> LenskitBinding<T> |
bind(java.lang.Class<T> type) |
DAGNode<Component,Dependency> |
buildGraph()
Deprecated.
This shouldn't be used anymore.
|
LenskitConfiguration |
copy()
Convenience method to copy a LensKit configuration.
|
BindingFunctionBuilder |
getBindings() |
java.util.Set<java.lang.Class<?>> |
getRoots() |
LenskitConfigContext |
matching(ContextPattern pattern) |
LenskitConfigContext |
within(java.lang.annotation.Annotation qualifier,
java.lang.Class<?> type) |
LenskitConfigContext |
within(java.lang.Class<?> type) |
LenskitConfigContext |
within(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier,
java.lang.Class<?> type) |
addComponent, addComponent, bind, bindAny, in, in, in, set, wrapContext
public LenskitConfiguration()
public LenskitConfiguration(LenskitConfiguration other)
other
- The configuration to copy.public LenskitConfiguration copy()
public void addRoot(java.lang.Class<?> componentType)
componentType
- The type of component to add as a root (typically an interface).LenskitRecommender.get(Class)
public <T> LenskitBinding<T> bind(java.lang.Class<T> type)
public LenskitConfigContext within(java.lang.Class<?> type)
public LenskitConfigContext within(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<?> type)
public LenskitConfigContext within(java.lang.annotation.Annotation qualifier, java.lang.Class<?> type)
public LenskitConfigContext matching(ContextPattern pattern)
public LenskitConfigContext at(java.lang.Class<?> type)
public LenskitConfigContext at(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<?> type)
public LenskitConfigContext at(java.lang.annotation.Annotation qualifier, java.lang.Class<?> type)
public BindingFunctionBuilder getBindings()
public java.util.Set<java.lang.Class<?>> getRoots()
@Deprecated public DAGNode<Component,Dependency> buildGraph() throws RecommenderConfigurationException
RecommenderConfigurationException