Hi,

I am struggling to understand how to give parameter information to leaf 
nodes, from the root node in a DI setup similar to Guice.

I have a class that takes a set of A's and generates E's.  (E(D(C(B(A)))))

E is the injected, the rest are instantiated by the DI, A is an 'A 
provider' or 'A factory'

E is the interface, how can I get a path, or other const data from a 
function in E to A, to start the function chain?

In other words I have some simple data A, that gets processed through a 
function chain, down to an E class which generates an E_Data object which 
is then used in the root of my application.

Do I string functions through E,D,C,B to get A's reference? That seems 
wrong.

Reversing the chain make the path simple A(B(C(D(E))))), but the only way 
to get the output seems to be to attach a singleton to E like 
A(B(C(D(E(SQL)))))).

That seems like inversion-of-inversion of control, but it also seems like a 
data manager could be made at the session scope that E could take as a 
constructor.

What do I have flipped?

Thanks,

Casey

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to