Either way we get the string property we wanted from .property
files. So what's the difference between Config.getString()
and configurationService.getConfiguration().getString()
in hybris platform?
And as another question;
if we getString()
a property which exists in both project.properties
and local.properies
with different values, which one do we get?
I haven't compared the difference between the two, but ConfigurationService
is preferred, as a best practice.
From Example of a Code Review Checklist:
Configuration - Use the ConfigurationService interface rather than the de.hybris.platform.util.Config object.