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.
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
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
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:
>
>