Cute!

On Fri, May 1, 2009 at 12:03 PM, Robbie Vanbrabant <
[email protected]> wrote:

> Hi all, I just wanted to share some code can simplify inline module
> creation:
>
> // Before:
> Module module = new AbstractModule() {
>   @Override
>   protected void configure() {
>     bind(MyInterface.class).to(MyImplementation.class);
>   }
> };
>
> // After:
> Module module = new ImmediateModule() {{
>   bind(MyInterface.class).to(MyImplementation.class);
> }};
>
> You can find the sources here: http://tinyurl.com/clqoaa
>
> Enjoy,
> Robbie
>
> >
>

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