Hi all,

In my previous DCI-Qi4j MoneyTransfer implementation (v9) I screwed up some
of Rickards ideas from his v8. I have now implemented a new version 9 that
is hopefully meeting the standards and ideas that Rickard set forth in v8. I
simply expanded Rickards orginal example in v8 to include the PayBills use
case which is a nice example of stacked contexts. If I'm still wrong, please
let me know and I'll update the files.

Code is in moneytransfer/qi4j_money_transfer_05.zip at http://bit.ly/bjjjMx

There is also a version 10 in a variation 10a that works and 10b_draft that
has a problem. They are an attempt to implement nested Contexts. In both
variations, I wanted to have a context field in a Role Mixin pointing to the
current Context so that I can get acccess to other Roles (and possibly also
other Context state) in the current Context in an intuitive and hopefully
not wrong way!

I'm bringing up the examples on this list because I have some Qi4j-related
problems and I suspect that you will be able to shake your heads and give me
hints to better solutions :)

10a (seems to work fine)
- Can I avoid to require a setContext() method on Role interfaces in order
to be able to set the Mixin field?

10b_draft (not working yet - I've been banging my head against several
implementation attempts)
- Can I enforce the ContextInjectionProviderFactory to inject the
TransferMoneyContext in the second iteration of the PayBills creditor loop
too? Or shall I do it a completely different way? (Or is it not possible
before we get Concern annotations on POJOs, so that we can have a Context
annotation on Context trigger methods as Rickard suggested on the DCI list?)

I'll also let the DCI list know about the examples once I have cleaned them
up - hopefully with some advice from you.

Thanks and cheers,
Marc
-- 
View this message in context: 
http://old.nabble.com/Stacked-Nested-Contexts-%2B-InjectionProviderFactory-question-tp30214625p30214625.html
Sent from the Qi4j-dev mailing list archive at Nabble.com.


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to