You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
664 B
14 lines
664 B
package com.xsn.explorer.modules
|
|
|
|
import com.google.inject.AbstractModule
|
|
import com.xsn.explorer.data.anorm.{BalancePostgresDataHandler, BlockPostgresDataHandler, StatisticsPostgresDataHandler}
|
|
import com.xsn.explorer.data.{BalanceBlockingDataHandler, BlockBlockingDataHandler, StatisticsBlockingDataHandler}
|
|
|
|
class DataHandlerModule extends AbstractModule {
|
|
|
|
override def configure(): Unit = {
|
|
bind(classOf[BlockBlockingDataHandler]).to(classOf[BlockPostgresDataHandler])
|
|
bind(classOf[BalanceBlockingDataHandler]).to(classOf[BalancePostgresDataHandler])
|
|
bind(classOf[StatisticsBlockingDataHandler]).to(classOf[StatisticsPostgresDataHandler])
|
|
}
|
|
}
|
|
|