Questions tagged [gwt-gin]

GIN brings automatic dependency injection to GWT client-side code.

GIN (GWT INjection) brings automatic dependency injection to Google Web Toolkit client-side code. GIN is built on top of Guice and uses (a subset of) Guice's binding language.

195 questions
2
votes
1 answer

Use gwt ui-binding in conjunction with google-gin

is there a way to use dependency injection in a widget, that is created via ui binding? Suppose I have a simple widget (in package com.example.client.ui.widget): public class Foo extends Composite { private final EventBus eventBus; …
schub
  • 912
  • 1
  • 8
  • 26
2
votes
1 answer

GWT - GIN - GWTP - Dispatcher Injection Problem

I am in a situation where someone might be already in. I am using GWTP in my application. GWTP is using GIN as a client side dependency injection. GWTP also uses Dispatcher mechanism for sending request to server side. Now, There are some classes…
Ashfak Balooch
  • 1,879
  • 4
  • 18
  • 30
2
votes
1 answer

Gin Injection Inside Class Generated By Deferred Binding

Here is the problem, I have code being generated by Deferred Binding in GWT, and I would like to use Gin Injection inside of this code. Initially, I attempted to put a private constructor with an @Inject annotation in the generated class, but GWT…
Kevin Dolan
  • 4,952
  • 3
  • 35
  • 47
2
votes
2 answers

postgresql : read GIN index content

I would like to read the trigram list supposedly created with my GIN index but I can't seem to find the command anywhere: I tried \di+, \dv+, \dm+ or each without the +. Nothing returns. Do I misunderstand something or my index is empty? It shows a…
John Doe
  • 1,570
  • 3
  • 13
  • 22
2
votes
2 answers

How to inject a "runtime" dependency like a logged in user which is not available at application boot time?

I'm just not getting this: I use Gin in my java GWT app to do DI. The login screen is integrated into the full application window. After the user has logged in I want to inject the user object into other classes like GUI Presenters which I create,…
Fabian
  • 2,428
  • 2
  • 21
  • 19
2
votes
0 answers

Postgres 9.6 - Create unique index for json array

'Sup, We have a Postgres (9.6) table myTable with a row data jsonb NOT NULL: DROP TABLE myTable; CREATE TABLE myTable (data jsonb NOT NULL); We want to store object containing an array of email addresses: INSERT INTO myTable (data) VALUES…
Paul Slm
  • 403
  • 3
  • 11
2
votes
3 answers

Compiling GWT project using GUICE with ANT

I can successfully compile the source, but when I hit this ant task:
charlie
  • 21
  • 3
2
votes
1 answer

GWT MVP when & how to use Dependency Injection

We're using the MVP pattern and GWT and I'm wondering how and when dependency injection should be used. We have an App Controller, Presenters, Views and Model code. From reading the GIN tutorial at…
K2J
  • 2,573
  • 6
  • 27
  • 34
2
votes
1 answer

GWT GIN HOW TO: injection of remote services

The gin tutorial seems to imply that to inject remote services all you need to do is annotate with @Inject. Do you you still need to define this in a module somewhere or is the point that you can just annotate with @Inject and it will work?
K2J
  • 2,573
  • 6
  • 27
  • 34
2
votes
0 answers

Postgres GIN on fixed length bit string

I'm try to create GIN for fast similarity search on bitsrings on postgres 9.6. I use tanimoto/jaccard similarity metric: tanimoto = popcount(bs1 & bs2)/popcount(bs1 | bs2) where 0 - is totally not similar and 1 - is identical. update: popcount - is…
2
votes
1 answer

How to Create Gin Indices Concurrently? POSTGRES & Rails 4.2

I am following the thoughtbot tutorial on multi-index full-text search using postgresql and rails 4. And I can't seem to get the indices migrations to work. I have tried disable_ddl_transaction! def change add_index(:cards, :object, using:…
Ghost
  • 145
  • 1
  • 10
2
votes
1 answer

GIN injection failure

I am using google-gin in my application and it works fine except from one case and I don't understand why. Basically, I inject a toolbar widget I created into my view and it works fine. I see my toolbar with all the different buttons but when I…
ovie
  • 621
  • 3
  • 20
2
votes
3 answers

Can I use some kind of assisted Inject with Dagger?

With Google Guice or Gin I can specify parameter with are not controlled by the dependency injection framework: class SomeEditor { @Inject public SomeEditor(SomeClassA a, @Assisted("stage") SomeClassB b) { } } The assisted parameter stage…
Michael
  • 32,527
  • 49
  • 210
  • 370
2
votes
3 answers

Gin / Gwt / Eclipse: com.google.gwt.inject.Inject cannot be resolved to a type

I'm trying to use GIN (Guice for GWT) within eclipse. The tutorial says to add a line to my module xml file: However, when I do this Eclipse reports an error "com.google.gwt.inject.Inject cannot…
Talin
  • 1,397
  • 2
  • 15
  • 30
2
votes
3 answers

Using a compile-time environment variable to configure RestApplicationPath

As stated in the documentation of rest-dispatch, the rest application path must be configured in the GIN module via a constant, here "/api/v1": public class DispatchModule extends AbstractGinModule { @Override protected void configure() { …
Eric Citaire
  • 4,355
  • 1
  • 29
  • 49