public class LenskitRecommenderEngineBuilder extends Object
If multiple configurations are used, later configurations superseded previous configurations. This allows you to add a configuration of defaults, followed by a custom configuration. The final build process takes the union of the roots of all provided configurations as the roots of the configured object graph.
LenskitConfiguration
,
LenskitRecommenderEngine
Constructor and Description |
---|
LenskitRecommenderEngineBuilder() |
Modifier and Type | Method and Description |
---|---|
LenskitRecommenderEngineBuilder |
addConfiguration(LenskitConfiguration config)
Add a configuration to be included in the recommender engine.
|
LenskitRecommenderEngineBuilder |
addConfiguration(LenskitConfiguration config,
ModelDisposition disp)
Add a configuration to be used when building the engine.
|
LenskitRecommenderEngine |
build()
Build the recommender engine.
|
ClassLoader |
getClassLoader()
Get the class loader this builder will use.
|
LenskitRecommenderEngineBuilder |
setClassLoader(ClassLoader classLoader)
Set the class loader to use.
|
public ClassLoader getClassLoader()
public LenskitRecommenderEngineBuilder setClassLoader(ClassLoader classLoader)
classLoader
- The class loader to use when building the recommender.public LenskitRecommenderEngineBuilder addConfiguration(LenskitConfiguration config)
addConfiguration(LenskitConfiguration, ModelDisposition)
with the ModelDisposition.INCLUDED
.config
- The configuration.public LenskitRecommenderEngineBuilder addConfiguration(LenskitConfiguration config, ModelDisposition disp)
config
- The configuration.disp
- The disposition for this configuration.public LenskitRecommenderEngine build() throws RecommenderBuildException
RecommenderBuildException