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
56
votes
3 answers

Replacing com.google.inject with javax.inject

Is it true that javax.inject annotations can function as direct replacements for com.google.inject? So that, if I replaced all my current guice/gin annotations with those from javax.inject, my app would compile and run just fine? First, does…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
39
votes
1 answer

PostgreSQL: GIN or GiST indexes?

From what information I could find, they both solve the same problems - more esoteric operations like array containment and intersection (&&, @>, <@, etc). However I would be interested in advice about when to use one or the other (or neither…
Grey Panther
  • 12,870
  • 6
  • 46
  • 64
13
votes
6 answers

Eliminating GWT ActivityMapper boilerplate

I am using the GWT Activities and Places framework to structure my application and it is turning out nicely. One thing that annoys me though is that the ActivityMapper implementation is (1) receiving all the views in the application (2) contains a…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
11
votes
4 answers

How to index jsonb integer values

I'm trying to use the "newish" JSONB type. I have a documents table with a properties jsonb field, and in that is a field publication_year. I want to find all document records within a year range e.g. 2013-2015. [EDIT: Querying for a range of…
Will Kessler
  • 565
  • 1
  • 7
  • 17
10
votes
1 answer

Postgres hstore: GIN vs GiST index performance

I have to decide whether to use GIN or GiST indexing for an hstore column. The Postgres docs state: GIN index lookups are about three times faster than GiST GIN indexes take about three times longer to build than GiST GIN indexes are about ten…
migu
  • 4,236
  • 5
  • 39
  • 60
9
votes
2 answers

Optimal Postgres text index for LIKE query?

Using Postgres 9.5, I have a table addresses. CREATE TABLE addresses ( id integer PRIMARY KEY, address text ); In that table I have 7.5 million rows. Example: 1, "1600 Pennsylvania Avenue NW, Washington, DC, 20500" I'm using this…
Tyler
  • 161
  • 1
  • 11
9
votes
1 answer

Difference between singleton and eagersingleton for Gin or Guice?

I was wondering what is the different between singleton and eagersingleton for Gin or Guice?
user_1357
  • 7,766
  • 13
  • 63
  • 106
8
votes
1 answer

Use of full-text search + GIN in a view (Django 1.11 )

I need some help with building proper query in a django view for full-text search using GIN index. I have quite a big database (~400k lines) and need to do a full-text search on 3 fields from it. Tried to use django docs search and this is code…
Chiefir
  • 2,561
  • 1
  • 27
  • 46
8
votes
4 answers

GWT+UIBinder+Gin+Guice+JDO+GAE example

I'm trying to link all this technologies, but there are many isolated examples and I do not have enough experience to link them together so my questions: Whether there is a similar example? Is it possible to use UIBinder with Gin? Any…
ziftech
  • 747
  • 1
  • 10
  • 22
8
votes
2 answers

How to use injection via GIN with UiBinder and Widgets?

I'm using GWT 2.4 with gwt-platform 0.7 and gin 1.5.0. I've built a library for dynamic (live) translation of my GWT application. So every widget will get notified when the LocaleChangeEvent gets fired and then ask my TranslationDictionary to get…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
7
votes
2 answers

Guice/Gin. How to inject multiple implementations

I have a webapp that use GIN to inject dependencies at entry point. private InjectorService injector = GWT.create(InjectorService.class); @GinModules({PlaceContollerInject.class, RootViewInject.class}) public interface InjectorService extends…
trupanka
  • 693
  • 8
  • 20
7
votes
1 answer

Pros and cons using Gin in GWT

What are the pros and cons using Gin in GWT in comparison with using a ClientFactory?
per_jansson
  • 2,103
  • 4
  • 29
  • 46
7
votes
3 answers

GWTP No Default Constructor For Interface

Can anyone help me solve a problem please? I'm upgrading from GWT 2.5.1 to 2.6.1 and am getting the following error when trying to run the codeserver of my project... [INFO] Compiling module [INFO] Validating units: [INFO] …
Peter L
  • 2,921
  • 1
  • 29
  • 31
6
votes
2 answers

How to override binding in GIN

I find the answer for Guice Overriding Binding in Guice but don't know how to do the same for GIN in GWT. Thanks in advance!
Rick Li
  • 1,457
  • 2
  • 14
  • 19
6
votes
2 answers

GWT.create(Class) vs. GIN?

It looks like GWT has its own baked-in DI mechanism (GWT.create(Class)). What benefits does GIN offer on top of this? Should you ever use them in conjunction with one another, or are they mutually exclusive? I like Guice so I'm tempted to use…
Bantha Fodder
  • 1,242
  • 1
  • 11
  • 19
1
2 3
12 13