Someone still has to create the classes and wire everything together.  
Duck-typing doesn't really help or hurt.

-bp


On Mar 24, 2009, at 5:15 PM, Dhanji R. Prasanna wrote:

> Im curious why do you need injection in your ruby classes at all?  
> Ruby dependencies are all inherently mockable as the language is  
> duck typed..
>
> Dhanji.
>
> On Wed, Mar 25, 2009 at 10:05 AM, Robbie Vanbrabant 
> <[email protected] 
> > wrote:
> I'm no JRuby expert, but I know Charlie has done some Ruby to Java  
> work recently:
> http://blog.headius.com/2009/03/compiling-ruby-to-java-types.html
>
> But even using the above I don't think you'll be able to create Ruby  
> classes using Guice. JRuby doesn't support annotations, for one. So  
> or you go all design pattern-ish and build the lifecycles in your  
> design, or you do a ServiceLocator that uses the injector, or you  
> generate a whole bunch of providers, or you try some Ruby magic with  
> mixins or something. The JRuby list is probably a better place to ask.
>
> You could also consider using Groovy. They have the best Java compat  
> around, and there's even a project that integrates Groovy with  
> Guice: http://code.google.com/p/groovy-guice/
>
> Cheers
> Robbie
>
>
> On Tue, Mar 24, 2009 at 1:58 AM, Pascal-Louis <[email protected] 
> > wrote:
>
> Do some of you have experience using Guice in a ruby app running on
> jruby? I'd like to inject java code in a ruby app and take advantage
> of Guice lifecycles.
>
> Any help welcome.
>
> PL
>
>
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to