Class GeneralInjectionModule

java.lang.Object
com.sportradar.livedata.sdk.di.GeneralInjectionModule
All Implemented Interfaces:
com.google.inject.Module

public class GeneralInjectionModule extends Object implements com.google.inject.Module
A Module implementation used by Guice to set-up general (used by many classes in the application) dependencies.
  • Constructor Details

    • GeneralInjectionModule

      public GeneralInjectionModule(JmxSettings jmxSettings)
  • Method Details

    • configure

      public void configure(com.google.inject.Binder binder)

      Contributes bindings and other configurations for this module to binder.

      Do not invoke this method directly to install submodules. Instead use Binder.install(com.google.inject.Module), which ensures that provider methods are discovered.

      Specified by:
      configure in interface com.google.inject.Module
    • provideVersion

      @Provides @Singleton protected Version provideVersion()
    • provideSimpleJMX

      @Provides @Singleton protected SimpleJMX provideSimpleJMX()
    • provideExecutorService

      @Provides @Singleton protected ExecutorService provideExecutorService(ThreadFactory factory)
    • provideScheduledExecutorService

      @Provides @Singleton protected ScheduledExecutorService provideScheduledExecutorService(ThreadFactory factory)