Re: Applying Spring Dependency Injection(DI) to client side classes in GWT

133 views
Skip to first unread message

Nick Siderakis

unread,
Jul 10, 2012, 10:14:23 AM7/10/12
to google-we...@googlegroups.com
You could use

  • Server: Guice
  • Client(GWT): Gin

or

  • Server: Spring
  • Client: Gin

On Tuesday, July 10, 2012 1:26:22 AM UTC-4, Saritha wrote:
Hi All,

I am new GWT. I have a project where I am using GWT and Spring as our technologies to implement.
I have done Spring integration with GWT, with the help of following links.
Here with this, I am able to apply the Dependency Injection with only Server side classes which holds the actual business(Remote Service) functionality.

My questions are, 

How can i apply Dependency Injection for all other classes like those are in client, shared, view, presenter packages?

Which dependency Injection is better? I mean GWT provided two dependency injection mechanisms
1 is guice is for implementing dependency injection on server side
2 is gin is for implementing dependency injection on client side.

and Spring Dependency Injection.

Which one is better to select? either GWT Dependency Injection or Spring Dependency Injection? or combination of both?

Please reply me.

Thanks,
Saritha.

 

Saritha

unread,
Jul 11, 2012, 2:22:09 AM7/11/12
to google-we...@googlegroups.com
Thank you very much reply.

One more doubt, with Spring DI,(from following links, i understood that, http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA)   I am able to apply the Dependency Injection with only Server side classes which holds the actual business(Remote Service) functionality.

  How can i apply Dependency Injection for all other classes like those are in client, shared, view, presenter packages? 

Saritha

unread,
Jul 11, 2012, 2:32:53 AM7/11/12
to google-we...@googlegroups.com
Please ignore last post..

Wanted to know... combination of Guice and Spring DI used at server side?
Reply all
Reply to author
Forward
0 new messages