Re: Wicket & Jdbi & Guice

2019-02-07 Thread Martin Grigorov
On Thu, Feb 7, 2019, 20:43 Vit Rozkovec Hi, thanks for comments. > > With supplier it works, but then in your code you need to have: > > @Inject > private IJdbiSupplier jdbiSupplier; > > ... > > Jdbi jdbi = jdbiSupplier.get(); > jdbi.useHandle(h->{ > ... > }); > > > which I wanted to avoid.

Re: Wicket & Jdbi & Guice

2019-02-07 Thread Vit Rozkovec
Hi, thanks for comments. With supplier it works, but then in your code you need to have: @Inject private IJdbiSupplier jdbiSupplier; ... Jdbi jdbi = jdbiSupplier.get(); jdbi.useHandle(h->{     ... }); which I wanted to avoid. Would it be a solution to add a check to

Re: Wicket & Jdbi & Guice

2019-02-07 Thread Vit Rozkovec
Hi, thanks for comments. With supplier it works, but then in your code you need to have: @Inject private IJdbiSupplier jdbiSupplier; ... Jdbi jdbi = jdbiSupplier.get(); jdbi.useHandle(h->{     ... }); which I wanted to avoid. Would it be a solution to add a check to

Re: Wicket & Jdbi & Guice

2019-02-06 Thread Martin Grigorov
Hi, On Wed, Feb 6, 2019 at 7:55 PM Vit Rozkovec wrote: > Hi, > > have any of you tried to inject Jdbi [1] via Guice to your component > hierarchy? I cannot do so without using intermediate Jdbi supplier. > Using supplier/provider is perfectly fine! > > Please see this issue: > >