objectcomputing / check-ins

Other
7 stars 7 forks source link

Use config class instead of `check-ins.web-address` and `check-ins.application.name` #2527

Open timyates opened 2 days ago

timyates commented 2 days ago

Currently we have a proliferation of @Property(name = "check-ins.web-address") String webURL for whenever we need to send an email to the user (or create an absolute URL link back to the server)

This PR replaces these with a single singleton configuration object that holds the web address and can be injected into the services as required.

This is the first step in moving all the check-ins configuration into code, to add type safety and reduce duplication of key names

[edit] I also added check-ins.application.name to the config object, and replaced it's usage in the code.