Skip to content

Dependency Injection on Blackberry

tom-elkin-tw edited this page Sep 14, 2010 · 1 revision

DI containers in the J2ME seem few and far between. AFAIK, we have two options:

Spring.ME or DIME

The choice is severely limited because J2ME doesn’t support reflection…

On first inspection Spring.ME seems a little nicer: DIME requires your classes to implement a Bean interface, and implement a single method ‘setProperties’. However, Spring.ME necessates using Maven, to generate a BeanFactory at build time. Doesn’t seem like it does enough to warrant adding Maven to our project for no other reason, so I think we’ll go with DIME.