Hello:
class UserEditor ... {
......
......
UiField (provided = true)
UserView view
....
....
@ Inject
UserEditor (UserView v) {
this.view = v;
UiBinder initialization ....
}
......
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment