Extending OSGI Configuration | Different configurations of a service according to the time of the server
CQ ConfigAdmin picks a folder based on the runmode like if runmode was author & dev, it will pick config.author.dev folder automatically. I have a usecase where-in my custom service is supposed to use two different set of properties based on whether its day or night. I know we could have an if-else in service itself and taking a superset of all the parameters, so wondering if runmode can help me here. Like if I create two different folders say config.author.dev.day & config.author.dev.night and then creating under each of it osgi:config node same as PID of my service. This will make it more flexible but have not found a way to do the same so far. Can you help?