I've got a better impl
public class MiniGuice {
public <T> T newInstance(Class<T> type) {
return (T) type.newInstance();
}
}
Okay typing code on the iPhone sucks. Enjoy and happy April fools!
Sent from my iPhone
On Apr 1, 2011, at 1:36 PM, Andrés Testi <[email protected]> wrote:
> Happy April 1 ;-)
>
> - Andrés
>
> On 1 abr, 12:59, Sam Berlin <[email protected]> wrote:
>> Guice Fans,
>>
>> On behalf of the Guice team and community, and I would like to announce
>> Guice 4.1. Guice 4.1 is a radical rethinking of Guice, dependency
>> injection, and how java libraries are shipped. True to the spirit of Guice
>> ("Guice is not a kitchen sink"), Guice 4.1 strips away all the features that
>> have become attached to Guice over its 5 years of life. Guice 4.1 has no
>> binding API, no SPI, no extension support, no scopes (beyond singletons),
>> and no method injection. Guice 4.1 doesn't even have a jar or any kind of
>> library you include in the program.
>>
>> What does Guice 4.1 have? A single file <http://goo.gl/kjEs8>, otherwise
>> known as MiniGuice. It is written entirely by Jesse Wilson. Jesse also did
>> the majority of work on Guice 2.0, so you can rest assured that Guice 4.1 is
>> 2.05 times better.
>>
>> You use Guice 4.1 through a very simple API*:*
>> *
>> *
>> * MyProgram program = MiniGuice.inject(MyProgram.class, new MyModuleOne(),
>> new MyModuleTwo());*
>> *
>> *
>> Get Guice 4.1 today athttp://goo.gl/kjEs8.
>>
>> Thanks!
>> Sam, on behalf of the Guice 4.1 team
>
> --
> 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.
>
--
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.