Hello developers,

I have been using the Android SDK for a few months now, and one thing
I was missing was a dependency injection container.
Dependency injection is a good practice to lower the coupling between
the components of your application.

I thought about using Spring, or PicoContainer but they use the
reflection API to provide dependency injection. And the reflection API
may not be the best speed partner for your Android apps.
I couldn't find any real small dependency injection container, that
would provide dependency injection without reflection.

Here comes Yasdic, "Yet Another Small Dependency Injection Container",
no more then 6.7KB.

The definitions are written programmatically and stored by String ids,
the beans are lazily created, and Yasdic also deals with singleton and
prototype scopes, cyclic dependency, and container hierarchy.

Please feel free to try it out : http://code.google.com/p/yasdic

I already use it in my Android apps, and I find my code to be much
more maintainable (thought this is a quite subjective point of
view ;-) ).

Any feedback on this project will be appreciated, even code
criticism :-) .

Regards and thanks !

Piwaï

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to