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

GIN @Inject on variable for Rpc Services

I'm a bit lost with the use of Inject on variable. I got this code working : private XXServiceAsync xxServiceAsync; @Inject protected IndexViewImpl(EventBus eventBus, XXServiceAsync tableManagementServiceAsync) { super(eventBus, mapper); …
Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
3
votes
2 answers

Trouble Compiling with Gin

I'm using Gin 1.5 and GWT 2.4 The project built just fine before I added Gin, but now it doesn't: [ERROR] [foo] - Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw an exception while rebinding…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
3
votes
1 answer

GWTP Code Splitting

I am using GWTP (MVP framework by Google) with GWT 2.3. I want to use GWT code splitting with my presenters. I know about @ProxyCodeSplit annotation in Presenters. Like below @ProxyCodeSplit @UseGatekeeper(LoggedInGatekeeper.class) public interface…
Hardik Mishra
  • 14,779
  • 9
  • 61
  • 96
3
votes
1 answer

GWT-GIN Multiple Implementations?

I have the following code public class AppGinModule extends AbstractGinModule{ @Override protected void configure() { bind(ContactListView.class).to(ContactListViewImpl.class); …
Kanagaraj M
  • 639
  • 5
  • 16
3
votes
4 answers

google-gin a provider needs a dependency. NullPointerException BindingsProcessor.java:498

In my GWT application i'm trying to setup a DI mechanism wihich would allow me to have all the commonly necessary stuff at hand everywhere. I'm using google-gin which is an adaptation of guice for GWT. I have an injector interface defined as…
Yervand Aghababyan
  • 1,100
  • 1
  • 18
  • 39
3
votes
2 answers

Inject a Class with GIN

Is there a way to inject a class type Class in gin? I can't seem to get it working, for example: class GenericFoo { private final Class klass; @Inject public GenericFoo(Class klass) { this.klass = klass; } } class Bar {…
ryan
  • 31
  • 2
3
votes
1 answer

GWT : DI via Gin vs GWT Deferred Binding

I'm new to GWT, but I'm not new to Dependency Injection. I'm looking for some concrete differences between DI via Gin and GWT Deferred Binding. I've used DI in the past to de-couple my app by injecting dependencies, and it seems that Deferred…
ctorx
  • 6,841
  • 8
  • 39
  • 53
3
votes
2 answers

PostgreSQL - query against GIN index of HSTORE value

I have the following constructor (as a test): CREATE TABLE product (id BIGSERIAL PRIMARY KEY, ext hstore); CREATE INDEX ix_product_ext ON product USING GIN(ext); INSERT INTO product (id, ext) SELECT id, ('size=>' || CEILING(10 + RANDOM() * 90)…
IamIC
  • 17,747
  • 20
  • 91
  • 154
3
votes
3 answers

Dependency injection not working in gwt 2.1

I have a new project where I am using GWT-Views like Composite, etc. I have injected the items in the main menu (like ProductList below) using GinInjector. This works fine! Somewhere I want to have a reference from a small component to an item from…
adranale
  • 2,835
  • 1
  • 21
  • 39
3
votes
2 answers

Postgres GIN Index Not Creating Through Liquibase Scripts

I am trying to create a GIN index through liquibase scripts. CREATE INDEX IF NOT EXISTS index_name ON schema_name.table_name USING gin (column1, lower(column2) COLLATE pg_catalog."default" gin_trgm_ops) Each time migration for the liquibae…
pratik
  • 41
  • 1
  • 4
3
votes
3 answers

Injecting EventBus GWT

Trying to inject the eventbus into a component but I'm getting the "has no default (zero args) constructor." error. Any clues what I'm doing wrong? Very new to GIN, so it might be trivial.. Here is my code: module: public class…
Andreas Blomqvist
  • 437
  • 1
  • 9
  • 22
3
votes
1 answer

Postgresql not using multi-column indexes (btree_gin)

I am having issues making postgres use my multi-column indexes for full search using the btree_gin extension. This is for a search page for articles. The idea behind the use of btree_gin is to be able to get the 'id' field for sorting and…
3
votes
1 answer

Gwt-dispatch injection

To use gwt-dispatch we create an object like: private static final DispatchAsync dispatchAsync = GWT.create(DefaultDispatchAsync.class); Is there any way to do this with injection, I mean how to inject this DispatchAsync object into other classes…
Gaurav
  • 31
  • 2
3
votes
1 answer

Adding user class to all presenters

I have a hazy understanding of GIN, but have it working for injecting presenters, etc. I'm trying to inject a self-made "User" class into all my presenters in order to get the currently logged-in user. I've added @Inject to the constructor on my…
jmccartie
  • 4,956
  • 8
  • 50
  • 71
3
votes
1 answer

Using GIN and mvp4g

I'd like to use gwt-dispatch Command Patter implementation in my app. I'm using also mvp4g. How can I make DefaultDispatchAsync available to inject into my presenters using GIN or make it globally available, so I can access it from my presenters?
jjczopek
  • 3,319
  • 2
  • 32
  • 72
1 2
3
12 13