use of javax.inject.Singleton in project ring-client-android by savoirfairelinux.
the class ServiceInjectionModule method provideContactService.
@Provides
@Singleton
ContactService provideContactService(PreferencesService sharedPreferencesService) {
ContactServiceImpl contactService = new ContactServiceImpl();
mRingApplication.getRingInjectionComponent().inject(contactService);
return contactService;
}
use of javax.inject.Singleton in project ring-client-android by savoirfairelinux.
the class ServiceInjectionModule method provideHardwareService.
@Provides
@Singleton
HardwareService provideHardwareService(Context context) {
HardwareServiceImpl hardwareService = new HardwareServiceImpl(context);
mRingApplication.getRingInjectionComponent().inject(hardwareService);
return hardwareService;
}
use of javax.inject.Singleton in project ring-client-android by savoirfairelinux.
the class ServiceInjectionModule method provideDeviceRuntimeService.
@Provides
@Singleton
DeviceRuntimeService provideDeviceRuntimeService(LogService logService) {
DeviceRuntimeServiceImpl runtimeService = new DeviceRuntimeServiceImpl();
mRingApplication.getRingInjectionComponent().inject(runtimeService);
runtimeService.loadNativeLibrary();
return runtimeService;
}
use of javax.inject.Singleton in project ring-client-android by savoirfairelinux.
the class ServiceInjectionModule method provideConferenceService.
@Provides
@Singleton
ConferenceService provideConferenceService() {
ConferenceService conferenceService = new ConferenceService();
mRingApplication.getRingInjectionComponent().inject(conferenceService);
return conferenceService;
}
use of javax.inject.Singleton in project ring-client-android by savoirfairelinux.
the class ServiceInjectionModule method provideCallService.
@Provides
@Singleton
CallService provideCallService() {
CallService callService = new CallService();
mRingApplication.getRingInjectionComponent().inject(callService);
return callService;
}
Aggregations