use of m.co.rh.id.a_medic_log.app.provider.notifier.NoteChangeNotifier in project a-medic-log by rh-id.
the class AppProviderModule method provides.
@Override
public void provides(Context context, ProviderRegistry providerRegistry, Provider provider) {
providerRegistry.registerModule(new BaseProviderModule());
providerRegistry.registerModule(new DatabaseProviderModule());
providerRegistry.registerModule(new CommandProviderModule());
providerRegistry.registerAsync(WorkManager.class, () -> WorkManager.getInstance(context));
providerRegistry.registerAsync(AppSharedPreferences.class, () -> new AppSharedPreferences(context, provider));
providerRegistry.registerAsync(ProfileChangeNotifier.class, ProfileChangeNotifier::new);
providerRegistry.registerAsync(NoteChangeNotifier.class, NoteChangeNotifier::new);
providerRegistry.registerAsync(NoteTagChangeNotifier.class, NoteTagChangeNotifier::new);
providerRegistry.registerAsync(MedicineChangeNotifier.class, MedicineChangeNotifier::new);
providerRegistry.registerAsync(MedicineReminderChangeNotifier.class, MedicineReminderChangeNotifier::new);
providerRegistry.registerAsync(MedicineIntakeChangeNotifier.class, MedicineIntakeChangeNotifier::new);
providerRegistry.registerAsync(NoteAttachmentFileChangeNotifier.class, NoteAttachmentFileChangeNotifier::new);
providerRegistry.registerAsync(FileCleanUpTask.class, () -> new FileCleanUpTask(provider));
providerRegistry.registerLazy(AppNotificationHandler.class, () -> new AppNotificationHandler(context, provider));
providerRegistry.registerPool(StatefulViewProvider.class, () -> new StatefulViewProvider(provider));
providerRegistry.registerAsync(MedicineReminderEventHandler.class, () -> new MedicineReminderEventHandler(provider));
// it is safer to register navigator last in case it needs dependency from all above, provider can be passed here
providerRegistry.register(NavExtDialogConfig.class, new NavExtDialogConfig(context));
providerRegistry.register(INavigator.class, getNavigator(provider));
}
Aggregations