Package com.sportradar.livedata.sdk.di
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
AModule
implementation used by Guice to set-up general (used by many classes in the application) dependencies.
-
-
Constructor Summary
Constructors Constructor Description GeneralInjectionModule(JmxSettings jmxSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(com.google.inject.Binder binder)
Contributes bindings and other configurations for this module tobinder
.protected ExecutorService
provideExecutorService(ThreadFactory factory)
protected ScheduledExecutorService
provideScheduledExecutorService(ThreadFactory factory)
protected SimpleJMX
provideSimpleJMX()
protected Version
provideVersion()
-
-
-
Constructor Detail
-
GeneralInjectionModule
public GeneralInjectionModule(JmxSettings jmxSettings)
-
-
Method Detail
-
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 thatprovider methods
are discovered.- Specified by:
configure
in interfacecom.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)
-
-