use of com.robertsanek.data.etl.remote.scrape.toodledo.HabitEtl in project core by z1lc.
the class ParentModule method habitEtlWill.
@Provides
@Named("will")
HabitEtl habitEtlWill(Injector injector) {
SecretProvider secretProvider = injector.getInstance(SecretProvider.class);
HabitEtl habitEtl = new HabitEtl() {
@Override
public String getUsername() {
return secretProvider.getSecret(SecretType.TOODLEDO_WILL_USERNAME);
}
@Override
public String getPassword() {
return secretProvider.getSecret(SecretType.TOODLEDO_WILL_PASSWORD);
}
};
injector.injectMembers(habitEtl);
return habitEtl;
}
Aggregations