guice
Testing an activity and pass an extra?
I am writing a test for my activity MyActivity activity = new MyActivity(); activity.onCreate(null); my activity expects and extra parameter开发者_StackOverflow社区s to be passed, so when I call on[详细]
2023-03-08 12:29 分类:问答Guice inject in servlet
I\'m fresh new in Google Guice framework and i have a question regarding injecting in guice servlet and using RequestScope. Ok let me give some example from my code just to make the things clearly.[详细]
2023-03-08 09:53 分类:问答AopAlliance (Guice): Call another method from an intercepted method
In method interception with AopAlliance is there a way to call a method from the class who\'s method was intercepted?[详细]
2023-03-08 09:04 分类:问答Java Guice: Run time dependency re-wiring
I have several classes StrategyAlpha, StrategyBeta, StrategyOmega that inherit from the Strategy class.[详细]
2023-03-07 04:40 分类:问答Get Target in MethodInterceptor
How I can get Target object in my interceptor? bindInterceptor(subclassesOf(A.class), any(), new MethodInterceptor() {[详细]
2023-03-06 08:53 分类:问答Easiest way to create a MutableGuiceKeyToInstanceMap?
I\'d like to find or implement a MutableGuiceKeyToInstanceMap working just like com.google.common.collect.MutableClassToInstanceMap from Guava, but using com.google.inject.Key<T> from Guice in p[详细]
2023-03-05 03:00 分类:问答What is the proper idiom for using the built in Guice Injection for annotating static java.util.Logger instances?
I want to start using Guice 3.x to magically inject my java.util.logging.Logger instances. Here is a snippet of code I am trying to get to work:[详细]
2023-03-03 10:11 分类:问答Inject the same component with different parameters with Guice
I have a Class which represents a graphical Component. This component displays data from the database.[详细]
2023-03-01 00:02 分类:问答Looking for Guice-to-OSGi guiding principles, experience, tips, etc
Guice is a great framework to separate API from implementation and to start modularizing your applications. OSGi is a great framework to load versioned services in their own secured environment and to[详细]
2023-02-27 17:50 分类:问答Injecting generated classes without writing too much module configuration code
Here\'s the situation: I have an abstract class with a constructor that takes a boolean (which controls some caching behavior):[详细]
2023-02-27 02:47 分类:问答