English 中文(简体)
Apache Click Guice integration
原标题:

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 ?

最佳回答

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.

问题回答

暂无回答




相关问题
What is the best way to use Guice and JMock together?

I have started using Guice to do some dependency injection on a project, primarily because I need to inject mocks (using JMock currently) a layer away from the unit test, which makes manual injection ...

Google Guice vs. PicoContainer for Dependency Injection

My team is researching dependency injection frameworks and is trying to decide between using Google-Guice and PicoContainer. We are looking for several things in our framework: A small code ...

Guice and JSF 2

I m trying to use Guice to inject properties of a JSF managed bean. This is all running on Google App Engine (which may or may not be important) I ve followed the instructions here: http://code....

JSR 330 and Guice interoperability

Does anybody have experience with JSR 330 vs Guice? From what I gather Guice is not an implementation of JSR 330 but if it is anything like Hibernate and JPA the implementation supports a bunch of ...

Alternative to dozer for bean mapping? [closed]

I am trying to figure out an easy way to map DTOs to entities without the boiler-plate code. While I was thinking of using dozer it appears to require a lot of xml configuration. Has anybody seen a ...

Guice Creation Exception

I am trying to get Guice working with Struts, Hibernate and Quartz scheduler. When I deploy my application under Tomcat, I get the following error - Nov 19, 2009 2:11:26 PM com.google.inject.struts2....

热门标签