Stuart McCulloch wrote:
> and in the next release of Guice you can also use provider methods:
> 
>   // taken from 
> http://publicobject.com/2008/07/typeresolver-tells-you-what-listget.html
>   class BarProviderMethods {
>     @Provides @Singleton
>     Bar provideBar() {
>       Bar result = new Bar();
>       result.setBaz("hello");
>       return result;
>     }
>     // ...more provider methods...
>   }
> 
> for when you don't want to write a Provider class for each sealed class

        I almost bolted after reading the TypeResolver example. Dear Sun, 
please fix Generics. Thank you :)

Gili

--~--~---------~--~----~------------~-------~--~----~
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