package com.twitter.follow_recommendations.modules

import com.google.inject.Provides
import com.twitter.decider.Decider
import com.twitter.follow_recommendations.configapi.ConfigBuilder
import com.twitter.inject.TwitterModule
import com.twitter.servo.decider.DeciderGateBuilder
import com.twitter.timelines.configapi.Config
import javax.inject.Singleton

object ConfigApiModule extends TwitterModule {
  @Provides
  @Singleton
  def providesDeciderGateBuilder(decider: Decider): DeciderGateBuilder =
    new DeciderGateBuilder(decider)

  @Provides
  @Singleton
  def providesConfig(configBuilder: ConfigBuilder): Config = configBuilder.build()
}
