I want to have the changing setting of my program to take effect right away rather than rebooting my program, what design pattern is suitable here.
have a centric setting class, once the setting changed it has to update the property of objects that need to be updated, if the number of objects is big, this will create unnecessary dependencies between objects and the settings
how about observer pattern, but it seems this pattern is not suitable here either. Then i have to add event handler to the objects, but seems this is not the responsibility of objects.
what's your solution?