So the DBus .service mechanism allows DBus to start a process if the requested service isn't running. I'm looking for something similar, but for objects.
If I have Object_0 thru Object_9 available, but only want to register them for DBus on-demand, i.e., when somebody requests the object. The path will be known, so I'm basically looking for a way to "catch" the error if it isn't registered and add the object (or provide an error, if for instance Object_11 is asked for) dynamically at run-time.
Is there a recommended way to do this? I have to think it has been done before, but I'm not finding anything.