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 TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) Contributes bindings and other configurations for this module tobinder.protected ExecutorServiceprovideExecutorService(ThreadFactory factory) protected ScheduledExecutorServiceprotected SimpleJMXprotected 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 methodsare discovered.- Specified by:
configurein interfacecom.google.inject.Module
-
provideVersion
-
provideSimpleJMX
-
provideExecutorService
-
provideScheduledExecutorService
@Provides @Singleton protected ScheduledExecutorService provideScheduledExecutorService(ThreadFactory factory)
-