| To sum it up (as we have somewhat wandered from the original issue description)... Current line of thoughts is to have most built-in contexts implement a new Weld API - WeldAlterableContext - which will allow to capture and set contextual instances. If implemented by custom contexts, they can be equally propagated. WeldManager will provide methods to obtain all scopes/contexts supporting propagation (all implementing the above interface). Integrator (read "whoever wants to have contexts propagated") would then be responsible for going over contexts, obtaining instances and setting them in the newly created threads. |