Re: Guice 2 SNAPSHOT: migrating from web.xml to ServletModule/GuiceFilter

2009-05-04 Thread Alen Vrecko
I gave it a quick go (trunk build) and it to works with jsp out of the box but it is not perfect(calling include works but calling forward crashes). IIRC There are 2 different ways of getting the RequestDispatcher o) From ServletContext in that case you specify the whole path

Re: How to create instances of objects with parametrs?

2009-05-04 Thread Leigh Klotz
I'm not an expert, but here's what I've done. I believe I posted an example with Motorcycles a while back, and it failed then, but the recent Guice 2.0 pre-release snapshots now support MapBinders of AssistedInject factories. I'll update it and post it again. In the meantime: Define a

Re: How to create instances of objects with parametrs?

2009-05-04 Thread Leigh Klotz
I'm not an expert, but here's what I've done. I believe I posted an example with Motorcycles a while back, and it failed then, but the recent Guice 2.0 pre-release snapshots now support MapBinders of AssistedInject factories. I'll update it and post it again. In the meantime: Define a

assistedinject and mapbinder example

2009-05-04 Thread Leigh Klotz
Here's my updated version of an example showing how to combine Mapbinder and Assisted Inject. http://graflex.org/klotz/2009/05/assisted-mapbinder/assisted-mapbinder.zip The old code in http://groups.google.com/group/google-guice/browse_thread/thread/b1b86a9976a74b20/def8bf9064a289ca didn't

Please review Log injection design for JClouds

2009-05-04 Thread Adrian Cole
Hello, all. I've just buttoned up an injectable logger implementation for jcloudshttp://code.google.com/p/jclouds/which heavily relies on new Guice 2.0 functionality. This design should be null-safe and pluggable without introducing api dependencies on log4j or the like. Please have a look at

Re: Guice 2 SNAPSHOT: migrating from web.xml to ServletModule/GuiceFilter

2009-05-04 Thread tchan
Hey, thanks for the reply. I gave it a quick go (trunk build) and it to works with jsp out of the box but it is not perfect(calling include works but calling forward crashes). I am just using the snapshot build. You're doing req.getRequestDispatcher( /WEB-INF/jsp/test.jsp). I could be

Issue 368 in google-guice: AssistedInject and MapBinder api conveniance in method parameters

2009-05-04 Thread codesite-noreply
Status: New Owner: New issue 368 by alen_vre...@yahoo.com: AssistedInject and MapBinder api conveniance in method parameters http://code.google.com/p/google-guice/issues/detail?id=368 I find it a bit unfriendly that FactoryProvider.newFactory(A,B) only takes A=B parameters. I.e. either