For the services that are only allowed one implementation, but multiple implementation are provided, make the service available by the use of properties in the application.properties file.
Use Case
Currently 2 weather services are implemented and available: MeteoBlue and OpenMeteo. Currently to use one or another, the developer has to remove the @Service annotation on the services that is not required.
Now, the developer has to set the weather service in the application.properties.
Expected Behavior
Load the service according to the new properties in the application.properties file:
Description
For the services that are only allowed one implementation, but multiple implementation are provided, make the service available by the use of properties in the application.properties file.
Use Case
Currently 2 weather services are implemented and available: MeteoBlue and OpenMeteo. Currently to use one or another, the developer has to remove the @Service annotation on the services that is not required.
Now, the developer has to set the weather service in the application.properties.
Expected Behavior
Load the service according to the new properties in the application.properties file:
Additional Context
Each services will define the required value in order to be enabled as sevice. Current values availabel are:
tech.renovus.solarec.weather.meteoblue.MeteoblueWeatherSreviceImpl
)tech.renovus.solarec.weather.openmeteo.OpenMeteoWeatherSreviceImpl
)tech.renovus.solarec.grid.electricMaps.ElectricMapsService
)tech.renovus.solarec.grid.ember.EmberGridService
)tech.renovus.solarec.certificate.drecs.DRecsService
)tech.renovus.solarec.certificate.greenhub.GreenhubService
)Impact on Existing Features
New properties need to be set in the application.properties in order to work.
Related Issues
51