Thanks! Petite is great...

19 views
Skip to first unread message

David Greene

unread,
Nov 30, 2014, 9:20:45 AM11/30/14
to jod...@googlegroups.com
I just want to throw out a thank you.  As a long time Spring user, I wanted to do some DI in a familiar way (I've never been a fan of the Guice method, though it's totally fine) and I found myself in need of a lighter weight DI solution and ran across Jodd.  I just wanted to say that I got started and only had to look at the source once to confirm my suspicions that @PetiteInject didn't work on parent classes with private members (protected works great). 

I only have one suggestion and that would be to piggy back on the JSR (330?) annotations @Inject just to decouple Petite from a particular solution.  In my case this wasn't that important, but I wanted to throw out the suggestion.

Thanks again!

jodder

unread,
Nov 30, 2014, 2:28:50 PM11/30/14
to jod...@googlegroups.com
Hey David!

Thank you very much for kind words! You explained Petite purpose very nice, this should be part of the documentation :) That is really the goal, to have it lightweight and - like you said - familiar. Not easy to explain to everyone, though :))) This really means a lot to us; as this project is so small comparing to 'big' ones out there.

Nice suggestion about custom annotations! We already use this approach in other microframeworks, where user can simply specify any custom annotation to be used instead of the original ones. Last time when I checked JSR330 Ive noticed some differences that were not easy to follow; but you are right - we might at least support some part of it; like to be able to use @Inject annotations.

As we are releasing tomorrow a fix pack, I am going to schedule this for the next release :)

Thank you!
Reply all
Reply to author
Forward
0 new messages