Package com.sportradar.livedata.sdk.di
Class GeneralInjectionModule
java.lang.Object
com.sportradar.livedata.sdk.di.GeneralInjectionModule
- All Implemented Interfaces:
com.google.inject.Module
A
Module
implementation used by Guice to set-up general (used by many classes in the application) dependencies.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(com.google.inject.Binder binder) Contributes bindings and other configurations for this module tobinder
.protected ExecutorService
provideExecutorService
(ThreadFactory factory) protected ScheduledExecutorService
protected SimpleJMX
protected Version
-
Constructor Details
-
GeneralInjectionModule
-
-
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 thatprovider methods
are discovered.- Specified by:
configure
in interfacecom.google.inject.Module
-
provideVersion
-
provideSimpleJMX
-
provideExecutorService
-
provideScheduledExecutorService
@Provides @Singleton protected ScheduledExecutorService provideScheduledExecutorService(ThreadFactory factory)
-