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
1
vote
2 answers

Inject entry point class in GWT with GIN

I've tried to do something like this: @Singleton public class AAA implements EntryPoint, HistoryListener { private BBB bbb; private CCC ccc; private DDD ddd; private EEE eee; @Inject public AAA(BBB bbb, CCC ccc, DDD ddd, EEE eee) { this.bbb =…
adgfs
  • 423
  • 6
  • 17
1
vote
3 answers

Singleton in GWT project

Could some explain me something. Here is some scenario. Let assume i have a class template and use Gin/Guice in the app. @Singleton public class Template extends Compose { private HorizontalPanel header; private HorizontalPanel content; private…
brakebg
  • 414
  • 3
  • 11
  • 24
1
vote
2 answers

GWT Guice/Gin on the server side problem

Hi guys with my question. A GWT project, as i have read Gin i usable only on the client side than Guice is usable on the server side. Here is my question. Let first post some example code. Server side. public class WebchargeServiceImpl extends…
brakebg
  • 414
  • 3
  • 11
  • 24
1
vote
2 answers

Gin problem using GWT - GWT.create(someClass.class) return different instance every time is called

here is my problem. I m using Gin in a gwt project, i m using GWT.create(SomeClass.class) to get instance ,but the problem is that i want signleton instance and for that purpose i bind that class in the app module to be singleton. Every tome i…
brakebg
  • 414
  • 3
  • 11
  • 24
1
vote
1 answer

Gin problem using GWT and Guice. - java.lang.RuntimeException: Deferred binding failed for

I have a problem using Gin. Here is a simple example. @GinModules(AppModule.class) public interface AppInjector extends Ginjector { MainForm getMainPanel(); TemplateForm getHeaderForm(); } then here is Module import…
brakebg
  • 414
  • 3
  • 11
  • 24
1
vote
1 answer

Adding a GIN index on a JSONB column slows down my request

I come from Mysql and nosql database, and I am new to Postgress db. I am using Postgres 11.6 on Aurora AWS. I am trying to create tables made of two columns, a key and a jsonb value. Each value looks like this: {"game": "game6", "username":…
Djoby
  • 602
  • 1
  • 6
  • 22
1
vote
2 answers

Cross-Activity references using GWT with Gin

I have a GWT MVP application using Activities and Places. This is inspired by Mauro Bertapelle's sample (in this thread), apparently based on some of Thomas Broyer's work. Here's the problem: I have LoginActivity make an RPC call, which for a…
Glenn
  • 6,455
  • 4
  • 33
  • 42
1
vote
2 answers

What is new in Google Gin 1.5?

Has anyone tried the recently released version of Google Gin (1.5)? I would like to know the new features in the release and any usage experiences with GWT.
Thimmayya
  • 2,064
  • 2
  • 18
  • 20
1
vote
1 answer

Deferred Binding/GIN in GWT widgets/libraries

I am struggling a little bit with the concept of deferred binding and/or dependency injection in libraries/widgets. I try to come up with the best approach for following problem: I want to implement a visualization widget (composite) that takes in…
Ümit
  • 17,379
  • 7
  • 55
  • 74
1
vote
2 answers

GWT & GIN: how to inject PlaceController into a widget using UIBinder

I have an InlineLabel subclass that I used in UIBinder. How can I inject a PlaceController into it via GIN, so that the widget can be used in UIBinder? (recall that UIBinder requires a no-args constructor.) If that's not possible, what's the…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
1
vote
1 answer

Google GIN, GWT, and com.google.inject.Inject(optional=true) not working

I have a GIN @Inject invocation where I use the optional=true attribute, but it is simply not honored / not working (and an error is being thrown because my class is not bound, which is true). I'm using GIN via .gwt.xml file like…
Andrei
  • 1,613
  • 3
  • 16
  • 36
1
vote
1 answer

Spring ROO GWT with GIN injection on widgets created by ui:binder

I'm trying to access some objects inside a ui:binder component, but not sure of how to access the eventBus, requestFactory, etc without writing nasty code that will keep me awake at night (also take note that I'm completely new to JAVA, background…
Jan Vladimir Mostert
  • 12,380
  • 15
  • 80
  • 137
1
vote
1 answer

Using Postgres 9.5 GIN indexes and JSONB

I'm trying to create a Postgres GIN index to speed up the following query: CREATE TABLE foo ( id serial primary key, a jsonb not null ); insert into foo(a) values ('[{"b": "aaa"}, {"b": "ddd"}]'::jsonb), ('[{"b": "aaa"}, {"b":…
RandomBK
  • 145
  • 2
  • 8
1
vote
1 answer

Can I inject objects in regular classes in GWT using GIN?

For instance, I have the GIN module which includes the binding for class A. While in class B (B is not bind using GIN), can I just simply use: @Inject private A a; to inject class A? I tried in my project, and looks like I got null pointer for…
injoy
  • 3,993
  • 10
  • 40
  • 69
1
vote
3 answers

GWT (Maven) project: Dependency conflict

I have a GWT project with the following dependencies com.google.gwt.inject gin 2.1.2
hansi
  • 2,278
  • 6
  • 34
  • 42