That seems to immediately create and initialize the subsystem before the Server class initializes.
Which was okay - until I started to add configuration data. I'd like the server application to load all the configuration data (rather than delegate that to each subsystem) so I call loadConfiguration() from the server's initialize() routine.
But because the configuration hasn't yet been loaded when the subsystem's initalize() starts I don't have a way to pass in user configured data.
I can think of several possibilities
- have each subsystem load the configuration data.
- split the subsystems initialize into multiple functions and manually call the "worker" function from the Server after loading the configuration data
Does anyone have any recommendations ?