use of com.robertsanek.util.SecretProvider 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;
}
use of com.robertsanek.util.SecretProvider in project core by z1lc.
the class ParentModule method habitRepEtlWill.
@Provides
@Named("will")
HabitRepEtl habitRepEtlWill(Injector injector) {
SecretProvider secretProvider = injector.getInstance(SecretProvider.class);
HabitRepEtl habitRepEtl = new HabitRepEtl() {
@Override
public String getUsername() {
return secretProvider.getSecret(SecretType.TOODLEDO_WILL_USERNAME);
}
@Override
public String getPassword() {
return secretProvider.getSecret(SecretType.TOODLEDO_WILL_PASSWORD);
}
};
injector.injectMembers(habitRepEtl);
return habitRepEtl;
}
Aggregations