I want to create node A(multiplexor) which has N node B's. Each node B has it's own node C and each node C has it's own node D and each node D has it's own node E.
Let's say N=4 on number of B,C,D,E chains that A has. Ideally, each node E ends up with information like i=0, 1, 2, 3.
On top of this, I may want to re-order B, C, D as they are pretty much like filters so I have them all implementing an interface with
Response service(Request r);
I would like desperately to stay away from assisted inject as incoming developers always get confused by that (at least I have noticed this time and time again and am tired of teaching that and I too think it's a bit ugly and confusing). They seem to need no training on all the other stuff making it easy.
I am thinking maybe I just inject a Provider and B has an C, C has a D and then they all have start methods but that sort of didn't pan out as I had hoped since the start method has to change on every service and all their start methods have to match. See, the issue is Node A has information on what node number E is and needs to get that information to E, but B, C, and D don't need that information.
I could maybe do some wiring in the A constructor and have
Provider<B> bProvider
Provider<E> eProvider
but then, how do I get E all the way down the chain. I am not quite sure of a clean way of doing this all.
thanks, Dean