How to use Gin DI in custom ConstraintValidator (Bean Validation)?

2013-03-29 Thread p . kotlyarov1988
For example i have some CodeValidator with dependencies. public class ExistingCustomsCodeValidator implements ConstraintValidatorExistingCustomsCode, String { @Inject private CustomsCodeService customsCodeService; @Inject private ProcessingCtx processingCtx; @Override public void

Re: how to use GIN ?

2010-06-28 Thread PhilBeaudoin
Thomas gives very good advice, although I personally never use the @ImplementedBy annotation (not entirely sure why...). To complement his answer, if you're interested in saving the addClickHandler call you may want to take a look at UiBinder the @UiHandler annotation. On Jun 27, 3:41 pm, Thomas

Re: how to use GIN ?

2010-06-28 Thread yves
Thank you for these explanations, I think I begin to understand GIN. .. and I'll read the Guice tutorials :-) (or may be :-( yet another tuto...) Yves PS to GIN team : please make GIN simple to understand for those who don't know Guice and are just trying to improve their client code. I only

how to use GIN ?

2010-06-27 Thread yves
Hi Everybody, I've read the the official tutorial at http://code.google.com/p/google-gin/wiki/GinTutorial, but I still doesn't understand how to use GIN (as it is mainly based on Guice that I don't know) and how it could help me :-( Sorry for the tutorial writer :-) I'm currently developping

Re: how to use GIN ?

2010-06-27 Thread olivier nouguier
hi Google to gwt-presenter HIH On Sun, Jun 27, 2010 at 12:51 PM, yves yves.ko...@gmail.com wrote: Hi Everybody, I've read the the official tutorial at http://code.google.com/p/google-gin/wiki/GinTutorial, but I still doesn't understand how to use GIN (as it is mainly based on Guice

Re: how to use GIN ?

2010-06-27 Thread yves
: hi  Google to gwt-presenter HIH On Sun, Jun 27, 2010 at 12:51 PM, yves yves.ko...@gmail.com wrote: Hi Everybody, I've read the the official tutorial at http://code.google.com/p/google-gin/wiki/GinTutorial, but I still doesn't understand how to use GIN (as it is mainly based

Re: how to use GIN ?

2010-06-27 Thread Thomas Broyer
On 27 juin, 19:39, yves yves.ko...@gmail.com wrote: Olivier, Thanks for the link. If I try to summarize my problem : Which are the conventions that are implicitly used by GIN to bind classes ? I've already seen gwt-presenter, but it didn't helped me to understand how to transform my