[Vala] [LibModulo] Dependency injection



I wrote a mail to Didier, but I think it's a good idea to post it
here, so that more people can benefit from it.

I've watched the video about Guice at
http://code.google.com/p/google-guice/. I'm currently reading the book
about dependency injection by Dhanji R. Prasanna. It seems like a
really good way of modularizing any software project, and I want to
try it with Vala.

I'm wondering if it is possible to use LibModulo to do something
similar to this:

Guice.createInjector().getInstance(Emailer.class).send("Hello");


Alexander Teinum



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]