Is it possible to provide xml configuration file as an alternative to AbstractModule?'s configure method (just like in jboss seam that is partly based on Guice)?
If the parameter can be specified at compile-time (or injection time), just bind the parameter as normal (perhaps using a BindingAnnotation?). If the parameter is determined at runtime, see AssistedInject.
What is the correct way to handle injectors if you can not bootstrap the entire application at once. Is it considered poor practice to keep the injector global?
My query about Guice never gets moderated into the Google Guice group queue for some reason, or any reply from the moderators. Tried over a period of more than a week. Here it is.
Is the AOP Support possible in Android 2.3? Anyone has got any idea of how compelx it could be for bytecode generation to be enabled in future Android versions? Thanks in advance.
I see that guice-3.0.zip conatisn quite a few jars but I just want to do basic DI plus method interception AOP. So what is minimal set of jars that I need to use?. I don't want to use all jars that I don't need.
http://groups.google.com/group/google-guice
Is it possible to provide xml configuration file as an alternative to AbstractModule?'s configure method (just like in jboss seam that is partly based on Guice)?
If you want to use XML, have a look at Bob's example in the trunk: http://code.google.com/p/google-guice/source/browse/#svn/trunk/examples/src/example/xml
How do I inject a Implementation, if this Implementation needs a Parameter in the constructor? somthing like
class FooImpl extends Bar implements IFoo{ public FooImpl(Parameter parameter){ super(parameter); } ... }thanks in advance
Larry
If the parameter can be specified at compile-time (or injection time), just bind the parameter as normal (perhaps using a BindingAnnotation?). If the parameter is determined at runtime, see AssistedInject.
What is the correct way to handle injectors if you can not bootstrap the entire application at once. Is it considered poor practice to keep the injector global?
My query about Guice never gets moderated into the Google Guice group queue for some reason, or any reply from the moderators. Tried over a period of more than a week. Here it is.
http://pastebin.com/raw.php?i=eSJjWseF
Is the AOP Support possible in Android 2.3? Anyone has got any idea of how compelx it could be for bytecode generation to be enabled in future Android versions? Thanks in advance.
Guice forum just started, check it out:
http://www.guiceforum.com
Is it possible to inject in a HttpSessionListener??
I see that guice-3.0.zip conatisn quite a few jars but I just want to do basic DI plus method interception AOP. So what is minimal set of jars that I need to use?. I don't want to use all jars that I don't need.