开发者

Apache Click Guice integration

开发者 https://www.devze.com 2023-03-19 04:00 出处:网络
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 filt

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

精彩评论

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