guice
Guice: Forcing a binding to be injected as a provider
I\'m looking for a way to force certain Guice bindings to be injected as providers only. For example, when there is a configuration like[详细]
2023-03-25 13:36 分类:问答Is there a javax.inject.* equivalent to @Assisted
We\'re looking at using the JSR-330 javax.inject.* annotations instead of the com.google.inject.* equivalents.It looks like the JSR-330 standard does not include several features that I\'ve come to lo[详细]
2023-03-24 14:40 分类:问答Serving files from war file
I am using a java servlet container, which serves files from the webapp directory. Say for instance I have Foo.html. host:80/Foo.html will serve this file. How do I serve the Foo.html for host:80/XXX/[详细]
2023-03-24 11:18 分类:问答Binding based on custom annotation
I\'m new to both stackoverflow and guice.I\'m not sure what I\'m trying to do is possible with guice, but I sure hope it is.[详细]
2023-03-20 13:12 分类:问答Guice: Building Related Trees of Objects / Robot Legs
I have a class A that holds a class B like this: class A { private final B b; @Inject A(B b) { this.b = b;[详细]
2023-03-20 09:06 分类:问答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 filt[详细]
2023-03-19 04:00 分类:问答Guice log4j custom injection does not support logging within the constructor
I\'m trying to use Guice to inject Log4J Logger instances into classes as described in the Guice documentation:[详细]
2023-03-18 22:51 分类:问答Generalize guice's robot-legs example with Multibinding
I have this use case that is very similar to the robot-legs example of Guice, except I don\'t know how many \"legs\" I have. Therefore I can\'t use the annotations needed for the robot-legs example.[详细]
2023-03-18 02:14 分类:问答Guice vs. Spring regarding external libraries
I have a question related to the case where one wants to inject stuff into instances of external libraries, 开发者_运维知识库i.e. classes that cannot be annotated with injection annotations.[详细]
2023-03-17 18:28 分类:问答How do I bind a specific parameter to an instance of a custom annotation?
How do I make the following work using Guice? // The Guice 开发者_运维百科Module configuration void configure() {[详细]
2023-03-17 16:39 分类:问答