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

google gin? use with spring?

i know gin is client side of guice . so in order to use gin. it must be used together with guice? i wonder, can it be used with spring?
cometta
  • 35,071
  • 77
  • 215
  • 324
2
votes
1 answer

GWT-GIN vs Raw Guice

Is there any reason why I can't just use Guice for DI inside a GWT application? If so, why? If not, what does GWT-GIN really offer that POG (plain ole' Guice) doesn't?
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
2
votes
1 answer

Gin AssistedInject: Deferred binding result type 'Foo' should not be abstract

I'm trying to use AssistedInject with Gin in GWT 2.4.0: public interface ElevatorButtonFactory { ElevatorButton create(int shownFloorNumber, Action onClick); } @Inject ElevatorButton(GameHost gameHost, @Assisted int…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
2
votes
2 answers

Mocking in GWT application showcase with the help of GIN

I need an example of well-structured full-stack GWT application written in the best practices: with MVP pattern usage, GIN modules (at least 2: production module and the mocking one for tests), JRE light-weight tests (extending TestCase class). The…
hsestupin
  • 1,115
  • 10
  • 19
2
votes
1 answer

Dynamic GWT Modules with Guice and GIN in execution time

Me and one friend are thinking in build a pluggable applications with GWT, guice, GIN, JPA2 etc... In our idea, we will have a basic web app, with login, permission management, basic configurations, a menu and a content slot for the real webapp…
caarlos0
  • 20,020
  • 27
  • 85
  • 160
2
votes
4 answers

Deferred binding failed

My application is throwing: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to inherit a required module?) on this code inside the EntryPoint: private final ClientAppGinjector…
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

How to create a default binding for a generic interface to a generic implementation with GIN?

I am trying Google GIN for our project and I came across a case where I have a generic interface and a generic implementation of that interface: public interface IFace { void setEntry(T t); } public class Face implements IFace { …
Tangresh
  • 176
  • 1
  • 9
1
vote
2 answers

NullPointerException while GWT building with Gin

My Gin module contains the following: @Override protected void configure() { bind(HistoryWrapper.class).to(HistoryWrapperImpl.class); ... } The types in question are: public interface HistoryWrapper { void newItem(String…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
1
vote
2 answers

GWT, Guice and GIN compilation

I'm trying to build and GWT MVP application using Guice and Gin. I added Guice and GIN jars to my Eclipse project but i'm stuck with this error: java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions I've done a quick Google…
Carlos Gavidia-Calderon
  • 7,145
  • 9
  • 34
  • 59
1
vote
1 answer

Use GUICE next to GIN

I'm using successfully GIN on my GWT projet. Now my RPC service will need data from other layer (Business Logic --> Data Access), in the old time I would have done singleton services with needed methods. Something like …
Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
1
vote
1 answer

Framework Extensibility based on GWT/GIN/GUICE

I hope my question is not to generic. I created a framework in gwt/gxt which helps developer to create very quick a web application with a set of pre definied widgets. Now over the days they want to have new functionality which are very related to a…
Gambo
  • 1,572
  • 3
  • 26
  • 52
1
vote
1 answer

GWT - binding activityMapper with GIN not working

I´m trying to do my first steps with GWT/GIN. I´ve downloaded the hellomvp example from google and followed this tutorial to get started with gin. My problem is about this line in the configure-method of the…
CSan
  • 954
  • 1
  • 10
  • 25
1
vote
1 answer

Injecting with Gin into instance created by GWT.create

I have a custom deferred binder (rebind implementation) that instantiates objects. I would like to have some dependencies (@Inject annotated setter methods) within the instance returned by GWT.create() fulfilled by GIN. Is this possible? So, given…
Καrτhικ
  • 3,833
  • 2
  • 29
  • 42
1
vote
1 answer

How to find a solution for my Gin problem?

Recently I was playing a game of Gin with my grandmother. We played a whole afternoon and as far as I can remember, I didn't won a single game. So I told here that it with the help of computers it could become a much better player. She couldn't…
anon
1
vote
1 answer

GIN: inject an array of objects

Is there a way to inject an array of objects or collection of objects? @Inject private A[] objects How do I create bindings for this case in my GinModule?
Axl
  • 4,491
  • 3
  • 16
  • 6