Package com.norconex.committer.core3
Class CommitterContext.Builder
java.lang.Object
com.norconex.committer.core3.CommitterContext.Builder
- Enclosing class:
CommitterContext
Builder for
CommitterContext.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a context and applies defaults where needed.setEventManager(EventManager eventManager) Sets the context event manager.setStreamFactory(CachedStreamFactory streamFactory) Sets the cached stream factory.setWorkDir(Path workDir) Sets the context working directory.
-
Method Details
-
setWorkDir
Sets the context working directory.- Parameters:
workDir- working directory- Returns:
- this builder
-
setEventManager
Sets the context event manager.- Parameters:
eventManager- event manager- Returns:
- this builder
-
setStreamFactory
Sets the cached stream factory.- Parameters:
streamFactory- stream factory- Returns:
- this builder
-
build
Builds a context and applies defaults where needed.- Returns:
- a fully initialized context
-