Hello:

Suppose you have a UserView interface, then you can use the interface instead 
of the concrete class.

class UserEditor ... {

......
......
UiField (provided = true)
UserView view

....
....

  @ Inject 
  UserEditor (UserView v) {
    this.view = v;

    UiBinder initialization ....
  }
}


where:

  class UserViewImpl implements UserView {
     ....
     ....
  }

By example with GIN:
   bind(UserView.class).to(UserViewImpl.class).in(Singleton.class);

Now, as says Aidan, if you not use GIN or other IOC, (provided = true) it 
is not necessary, UiBinder does it for you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KkMfsZAm9dUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to