gwt 2.4 - Dependency Injection in GWT or of Spring -


I have a new GWT. I have a project where I'm using GWT and Spring because implementing our technologies I have done Spring Integration with GWT, with the help of the following link. Https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA With this here, I am able to apply dependency injection with only the server side class which holds the actual business (remote service) functionality.

My questions are,

  • How can I apply for all other classes like these dependency injection in the customer Share, see presenter packages?

  • Which dependency injection is better? I mean GWT has provided two dependency injection mechanisms

    1. guice is to apply dependency injection on the server side

    2. Dependency To apply the injection is to the client side.

    3. And spring dependency injection. To select

      Which is better ? Either GWT dependency injection or spring dependency injection? Or the combination of both?

      Answer me

      Thanks,

      Sarita.

      After

      If the spring is not supported for GWT then you must use the client side for that.

      There is no point in gathering gisas and spring on the server side, because spring management is not compatible with Gu Guice Managed Beans.

      So you have to ask yourself that the structure you want to use on the server side, both do a very good job. Guice is more lighthweight and Spring offers several Adultal modules.

      Due to this fact I am using GIN on customer side, I did not get any benefit to use Guice on server side.

Comments