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

GIN - Pass a constructor parameter to my ClientModule

I have a pretty simple GIN usage in my GWT project. I followed the Guice tutorial to set it up. I want to bind an unchanging Long variable to an annotation in my AbstractGinModule subclass. The problem is that I do now know the value of the…
Jen S.
  • 4,106
  • 4
  • 35
  • 44
2
votes
0 answers

multiple code split points in GWTP presenter

I have a Presenter class which has references to objects of other classes.These objects are large in number roughly 18-25.I have not injected any of the objects. During the GWT compile, this Presenter is converted to a n number of *.cache.js files,…
user1254554
  • 203
  • 1
  • 4
  • 14
2
votes
3 answers

How to refresh GWTP app after login and cookie is set? Gin Provider Injection

I have an application that uses GWTP, which heavily relies on Gin & Guice. My app authentication works using a CurrentUserDto to represent the currently logged in user, which is bound to a Provider and is injected where needed. My app allows users…
slugmandrew
  • 1,776
  • 2
  • 25
  • 45
2
votes
1 answer

GWT GIN circular dependency

Here is an example that I have - public class GinDemoPresenter implements Presenter { private View view; @Inject public GinDemoPresenter (View view) { this.view = view; } .... } public class GinDemoView implements View { …
ankurvsoni
  • 2,064
  • 3
  • 18
  • 22
2
votes
1 answer

How to properly use TypeLiteral in GinMapBinder?

What im trying to do is to create map, where key will be class which extends my abstract class GinMapBinder, Value> mapBinder = GinMapBinder .newMapBinder(binder(), new TypeLiteral
user902383
  • 8,420
  • 8
  • 43
  • 63
2
votes
1 answer

GWT gin/guice injection order

I have a GWT app which uses Gin/Guice. My need : call a method after that all fields are injected. Here is an extract of Javadoc about @Inject Constructors are injected first, followed by fields, and then methods. So my idea was to have only one…
Arnaud Denoyelle
  • 29,980
  • 16
  • 92
  • 148
2
votes
1 answer

Use GIN to inject a Generics factory of ListEditor

I've written a factory able to create ListEditor of any type: public interface ListEditorFactory> { ListEditor create(InsertPanel panel); } And its implementation: public class ListEditorFactoryImpl
Arnor
  • 106
  • 5
2
votes
1 answer

GWT Gin 2.1 Unsupported major.minor version 51.0

I am getting an error when trying to compile gwt project that is typically caused by a jre 1.7 (51.0) compiled class. I have verified that my classes are getting compiled with 1.6 version. I am almost positive that this is some other class that is…
Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
2
votes
4 answers

How to vary Constants based on deployment instance

I've been building a GWT 1.7 + GAE application using the eclipse plugin. The system constants are loaded into a MyConstants.properties file that is loaded by the singleton MyConstants class extending the ...gwt.i18n.client.Constants class. I would…
Stevko
  • 4,345
  • 6
  • 39
  • 66
2
votes
1 answer

Instanciate an injector with multiple AbstractGinModule

In google Guice, I can create an injector based on multiple module with the function createInjector. Because I use GWT.create to instanciate the injector in GoogleGin, is it possible to create a Ginjector based on multiple AbstractGinModule. If we…
X-Blaster
  • 1,751
  • 3
  • 15
  • 32
2
votes
1 answer

GWT Gin Async Service Injection

I have a question about using Gin to inject GWT Async RPC service. I have two classes both using the same Async service: class TheViewA { @Inject public TheViewA(MyServiceAsync myServiceASync) { .... } } class TheViewB { …
user2064791
2
votes
1 answer

PostgreSQL : Gin max fields size

I'm currently evaluating many FullText indexing solutions, and I'm playing with native postgres FT. I'm trying to index my data using GIN indices. But there's a limitation in the field size, I encounter some errors saying "huge tuple" while…
user155118
2
votes
2 answers

GWT dev mode throws ArrayIndexOutOfBoundsException when compile GinjectorImpl.java

I'm getting following exception when open my GWT app in development mode. the exact same code can compile successfully using mvn gwt:compile Caused by: java.lang.ArrayIndexOutOfBoundsException: 3667 at …
Jiang Zhu
  • 97
  • 1
  • 8
2
votes
1 answer

GWT GIN Provider compile error

I am trying to configure my GIN module to bind ActivityManager requests to a DefaultActivityManagerProvider: import com.google.inject.Provider; public class DefaultActivityManagerProvider implements Provider { @Override …
user1768830
2
votes
1 answer

How to bind essential GWT components with GIN?

I've followed the basic setup instructions on the GWT-GIN tutorial page. I'm on Step #3 (Declare bindings) and am trying to figure out how to use GIN's Binder API. public class MyModule extends AbstractGinModule { @Override public void…
user1768830