GWT GIN HOW TO: injection of remote services
-
09-10-2019 - |
문제
The gin tutorial seems to imply that to inject remote services all you need to do is annotate with @Inject
.
Do you you still need to define this in a module somewhere or is the point that you can just annotate with @Inject
and it will work?
해결책
Gin has automatic support for remote services, as outlined in the tutorial you mentioned:
Every time Gin is asked to inject an asynchronous remote service, it will inject an instance retrieved through calling GWT.create on its regular remote service.
Therefore, it will 'just work'.
제휴하지 않습니다 StackOverflow