Apache Click Guice integration

266 Views Asked by At

Is there a way of integrating apache click web framework with Google Guice such that I can use @Inject to inject Guice services into page/panel classes ?

1

There are 1 best solutions below

2
On BEST ANSWER

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.