Gin

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.gwtsushi.info/

GWT Sushi

Hey, have you tried Grails? If you love Java and love Spring, you are going to adore Groovy on Grails (www.grails.org). Last week I decided to try out Groovy on Grails using the excellent free ebook located here: free ebook - yes please . The book took me two days to navigate through and if you have any experience in Ruby on Rails, you are going to love it. Grails applications are typically called Groovy on Grails. Groovy is the language and Grails is the utility that uses convention over configuration to build easily, web applications.

java - GWT - GIN - GWTP - Dispatcher Injection Problem - Stack Overflow

I am in a situation where someone might be already in. I am using GWTP in my application. GWTP is using GIN as a client side dependency injection. GWTP also uses Dispatcher mechanism for sending request to server side. Now, There are some classes (PRESENTERS) which is injected by GWTP, I have some other classes which are created runtime without injection that means using "new" keywork. http://stackoverflow.com/questions/7403811/gwt-gin-gwtp-dispatcher-injection-problem
http://www.amateurinmotion.com/articles/2009/11/02/async-with-gin.html

GWT.runAsync with GIN — amateur in motion (r579)

GWT-2.0 has great new feature called Code Splitting what allows to split module in smaller compiled parts and request parts only when (if) they’re needed. But I’m using GIN to wire all internal application object graph (models, presenters, views, service classes) and of corse if it’s left as is (one Ginjector) no code is split. public class StoriesModule extends AbstractGinModule { @ Override protected void configure () { bind( EventBus . class ).to( EventBusImpl . class ); bind( EventBusListener . class ).to( LoggingEventBusListener . class ); bind( AdminLoader . class ).to( AdminLoaderImpl . class ); } } and AdminModule :
Instead of writing an introduction tutorial to the GIN capabilities, the purpose of this article series is to illustrate some of the GIN features while applying some recipes to an existing application. Maybe you already know this little screencast where Hamlet D’Arcy explains how to decouple GWT components by mean of an “event bus” in a little “ping-pong” simulation. If not, maybe you would like to spend five minutes watching the screencast and, once you are done, read on and learn how to apply some dependency injection techniques to improve this little application. The source code of the application can be downloaded here . To see the application working, unzip the file, change to the folder where the Maven pom file is stored and type the command: “mvn clean gwt:run”. After the GWT “Development mode” application starts, click on the “Launch Default Browser” button. http://www.canoo.com/blog/2011/04/05/gwt-dependency-injection-recipes-using-gin/

» GWT Dependency Injection recipes using GIN » Canoo RIA Blog

http://code.google.com/p/google-gin/wiki/GinTutorial

GinTutorial - google-gin - Using GIN to create a GWT widget - GIN (GWT INjection) is Guice for Google Web Toolkit client-side code - Google Project Hosting

This tutorial will show how a simple GWT widget can be constructed with GIN. You should be already familiar with Guice - if not, then please read the Guice User Guide for an introductory overview of Guice concepts. Experienced GWT users will notice the similarity to the way GWT image bundles and messages are done: You simply create a method for each object type you want to create, and the an implementation of the interface gets generated for you at compile time .
http://stackoverflow.com/questions/5002059/deferred-binding-gin-in-gwt-widgets-libraries

Deferred Binding/GIN in GWT widgets/libraries - Stack Overflow

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 some data and displays it. I want to separate the way the data is retrieved from the actual visualization part. So I added a generic interface "DataSource" which looks like this:

» GWT Dependency Injection recipes using GIN (III) » Canoo RIA Blog

http://www.canoo.com/blog/2011/06/20/gwt-dependency-injection-recipes-using-gin-iii/ This is the third part of a series about Dependency Injection in Google Web Toolkit using GIN. If you have not yet read the first and second parts, you maybe should do it before reading this third and last article. ... final Button button = new Button("Serve!"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { button.setVisible(false); injector.getRacket().serve(); } }); ... Here the new extracted “ServeView” class: public class ServeView extends Button { @Inject public ServeView(final Racket racket, @Named("ServeText") String serveText) { super(serveText); addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { setVisible(false); racket.serve(); } }); } }
http://www.canoo.com/blog/2011/06/14/gwt-dependency-injection-recipes-using-gin-ii/

» GWT Dependency Injection recipes using GIN (II) » Canoo RIA Blog

This is the second part of a series about Dependency Injection in Google Web Toolkit using GIN. If you have not yet read the first part , there we explained how to integrate GIN in an existing GWT sample application. In this second part, we will continue enhancing the sample application while explaining other types of injection supported by GIN. Encapsulating the event bus In the first part of this series, we configured the GWT event bus used in the original application to be injected in some of the application elements.