开发者

Apache Click Guice integration

Is there a way of integrating apac开发者_StackOverflow中文版he click web framework with Google Guice such that I can use @Inject to inject Guice services into page/panel classes ?


I used the guice filter on web.xml and added the ClickServlet in guice servlet module. I then did an override on the newPageInstance() method on click servlet and called injector.injectMembers(page) to inject all the dependencies on the newly created page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜