[Vala] [LibModulo] Dependency injection
- From: Alexander Teinum <ateinum gmail com>
- To: vala-list gnome org
- Subject: [Vala] [LibModulo] Dependency injection
- Date: Sun, 2 Aug 2009 22:39:03 +0200
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]