Package org.webharvest.ioc
Class ScraperModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.webharvest.ioc.ScraperModule
-
- All Implemented Interfaces:
com.google.inject.Module
public final class ScraperModule extends com.google.inject.AbstractModule
Guice module for Web-Harvest configuration. Refactored to use smaller, focused methods for better maintainability.- Since:
- 2.1.0-SNAPSHOT
- Author:
- Robert Bala
-
-
Constructor Summary
Constructors Constructor Description ScraperModule(String workingDir)
Creates a ScraperModule with default configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindConfigParser()
protected void
bindDBConnectionFactory()
protected void
bindDebugFileLogger()
protected void
bindScraperContext()
protected void
bindStatusHolder()
protected void
configure()
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Constructor Detail
-
ScraperModule
public ScraperModule(String workingDir)
Creates a ScraperModule with default configuration.- Parameters:
workingDir
- the working directory
-
-
Method Detail
-
configure
protected void configure()
- Specified by:
configure
in classcom.google.inject.AbstractModule
-
bindDBConnectionFactory
protected void bindDBConnectionFactory()
-
bindScraperContext
protected void bindScraperContext()
-
bindDebugFileLogger
protected void bindDebugFileLogger()
-
bindStatusHolder
protected void bindStatusHolder()
-
bindConfigParser
protected void bindConfigParser()
-
-