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

using GIN in GWT Activities

Each of my Activities needs a correspoding singleton View implementation. What's the best strategy to inject them into activities? constructor injection Activity constructor is called from an ActivityMapper's getActivity(). The ctor already has a…
kosmičák
  • 1,043
  • 1
  • 17
  • 41
5
votes
2 answers

GWT, MVP, GIN, code splitting?

How to minimize the amount of code downloaded initially by GWT app user's browser? Well, just wrap potentially big operations in a GWT.runAsync() call. However, since our application is using GWT best practices (dependency injection, MVP pattern),…
user405458
  • 1,107
  • 3
  • 24
  • 38
5
votes
1 answer

What's wrong with GIN index, can't avoid SEQ scan?

I've created a table like this, create table mytable(hash char(40), title varchar(500)); create index name_fts on mytable using gin(to_tsvector('english', 'title')); CREATE UNIQUE INDEX md5_uniq_idx ON mytable(hash); When I query the title, test=#…
daisy
  • 22,498
  • 29
  • 129
  • 265
4
votes
1 answer

How to use Guice bindings in Gin module for PlayN?

Imagine you have a PlayN game which uses Guice bindings in its core project: /* PlayN core Guice module */ public class MyGameModule extends AbstractModule { @Override protected void configure() { …
levivanzele
  • 726
  • 1
  • 13
  • 33
4
votes
1 answer

GIN binding problems in GWTP application

every one! I'm having a compilation problem in my GWT app which is divided in 3 modules: App-core: containing the main classes without an entry point, App-A and App-B: inherit from App-core, and containing there specific classes with an entry point…
DRedouane
  • 41
  • 4
4
votes
4 answers

Trouble with EventBus and Gin in Gwt 2.4

I'm trying to use Gin in MVP GWT 2.4. In my module, I have: import com.google.web.bindery.event.shared.EventBus; import com.google.web.bindery.event.shared.SimpleEventBus; @Override protected void configure() { …
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
4
votes
2 answers

Does GIN support anything like child injectors?

I have one application that contains sub-applications. I would like to segregate the GIN injection so that each sub-application can have separate instances of the same core shared classes. I also want the injector to supply classes from some core…
Simon Steele
  • 11,558
  • 4
  • 45
  • 67
4
votes
1 answer

Postgresql BTREE_GIN index with gin_trgm_ops option?

On https://www.postgresql.org/docs/current/static/pgtrgm.html it is explained how special GIN idexes with gin_trgm_ops option can be used to facilitate trigram similarity operator performance. CREATE INDEX trgm_idx ON test_trgm USING GIN (t…
zlatko
  • 596
  • 1
  • 6
  • 23
4
votes
1 answer

Pattern matching on jsonb key/value

I am using PostgreSQL 9.4. My table has a jsonb column: CREATE TABLE "PreStage".transaction ( transaction_id serial NOT NULL, transaction jsonb CONSTRAINT pk_transaction PRIMARY KEY (transaction_id) ); CREATE INDEX idxgin ON…
Neeraj Gupta
  • 43
  • 1
  • 4
4
votes
1 answer

Using GWT source code in Android

I have a web app based on GWT. I use the same code base to target desktop as well as mobile platforms. I am using Model-View-Presenter and Dependency Injection based on GIN to achieve the goal of being cross platform compatible. However for better…
Droid_9
  • 165
  • 10
4
votes
2 answers

how can I detect gin and gist

how can I detect GIN and GiST indexes in postgresql? I am looking for if an database of postgres use fulltext. I think that a table use GIN o GiST then is using fulltext. I accept that GIN or GiST indexes does not necessarily mean that they are used…
4
votes
1 answer

ActivityMapper with Gin and AsyncProvider

I've just started a project built with the new GWT archetype. ActivityMapper looks like: public interface Factory { HomeActivity homeActivity(); GreetingActivity greetingActivity(String user); } private final Factory…
Gal Bracha
  • 19,004
  • 11
  • 72
  • 86
4
votes
2 answers

GWT/Gin Presenter instantiation

I've implemented a GWT application following the recommendations of this tutorial. I also downloaded the sample code, and I noticed that every Presenter of the demo needed to be injected in the main presenter constructor to be instantiated. The…
Carlos Gavidia-Calderon
  • 7,145
  • 9
  • 34
  • 59
3
votes
1 answer

Is it possible to get generic parameter type at runtime from GWT

Problem: I have a generic super class with type T at GWT client side , the subclass is generated at runtime(using GIN) with the generic parameter initialized, is it possible to retrieve concrete subclass's generic parameter type at runtime? I can…
Mike
  • 3,515
  • 10
  • 44
  • 67
3
votes
2 answers

What are the scopes of GIN bindings?

I wonder what scopes folowing two bindings have: bind(PermissionManager.class).in(Singleton.class); and bind(PermissionManager.class); I have read the JavaDocs, they are as following. For Singleton: /** * Apply this to implementation classes when…
Dmitry Chornyi
  • 1,821
  • 4
  • 25
  • 33
1
2
3
12 13