guice
Do I need a Guice module for every class to write integration tests?
Currently I have 1 Guice module in my project which defines all bindi开发者_运维百科ngs. Now I want to write integration tests and I need to bind the dependencies of a specific class. If I use the exi[详细]
2023-04-08 23:52 分类:问答How to inject/resolve properties into an XML file with Guice to configure the persistence.xml file?
I\'m using guice-persist and I would like to know if there is any to inject or resolver properties from a Java property file into the persistence.xml file like I would do with Spring. For example:[详细]
2023-04-08 17:32 分类:问答How to configure roles with Apache Shiro 1.2-SNAPSHOT and Guice?
I\'m playing around with Shiro and would like to configure roles via the ShiroWebModule. addFilterChain(\"/**\", AUTHC);[详细]
2023-04-08 16:48 分类:问答How to inject a Provider using Guice
I want to inject a Provider<T>, in something开发者_运维百科 like this: class Work { Provider<Tool> provider;[详细]
2023-04-08 09:27 分类:问答How can Guice annotated injections be converted to Spring dependency injection
I set up this binding with Guice bindConstant().annotatedWith( SecurityCookie.class ).to(\"JSESSIONID\");[详细]
2023-04-07 16:49 分类:问答google-gin a provider needs a dependency. NullPointerException BindingsProcessor.java:498
In my GWT application i\'m trying to setup a DI mechanism wihich would allow me to have all the commonly necessary stuff at hand everywhere. I\'m using google-gin which is an adaptation of guice for G[详细]
2023-04-07 15:50 分类:问答Guice injection and RequestFactory: Extending ServiceLayerDecorator
I searched for a solution to use Guice Dependency injection together with RequestFactory. I stumbled upon this: https://github.com/etiennep[详细]
2023-04-07 09:23 分类:问答JAXB and Guice: How to integrate and visualize?
I find using JAXB together with Guice possible, but challenging: Both libraries \"fight\" for control over object creation, you have to be careful to avoid cyclic dependencies, and it can get messy wi[详细]
2023-04-06 11:33 分类:问答Guice Injection into Business Layer of Java Web App
I have sucessfully used Guice to Inject Providers into the servlet portion of an existing java web application, however, I can\'t access the injectors through the business layer (non-servlet java clas[详细]
2023-04-06 03:03 分类:问答How to exclude/redirect certain url pattern in web.xml or Guice servlet module?
I need to serve my main application with the url pattern \"/*\" so this pattern is matched to a Servlet.[详细]
2023-04-05 23:01 分类:问答