Nimbus: A cross platform Swing look and feel that doesn’t suck Beating Ben Up and Input Devices
Mar 09

Guice-y Spring

Tech Add comments

There has been a little bit of buzz over the Guice 1.0 announcement.

Guice is a new Dependency Injection framework written specifically for Java 5 and up, and is thus able to think of things in that context. Generics support is first class etc.

Some people have already asked about competition with Spring, which really shows how many people don’t get what Spring is :)

Spring is an enterprise Java productivity framework in my mind. It happens to include a DI framework at the heart of it, but that isn’t all it is.

Guice on the other hand aims to just tackle the DI piece, and comes at it from a different angle.

Rather than seeing the competition I saw the possibilities of using the two together. They already both support the AOP Alliance APIs so you can play nicely. You can choose to use Guice DI with Spring helpers.

So, before we get into a “Spring vs. Guice” mindset, let’s remember how incredibly different they are.

You can read about a comparison from the Guice point of view.

And then Joe goes and writes A Spring competitor from Google :)

8 Responses to “Guice-y Spring”

  1. Howard Lewis Ship Says:

    Big deal, like who HASN’T written an IoC container. Or two. Seriously, Guice has a couple of cool ideas, but I sincerely believe its goals (and a lot of other ones besides) are better met with Tapestry 5 IoC, which goes a lot further in terms of convention over configuration (via naming conventions and occasional annotations).

    Tapestry 5 IoC also supports distributed configuration (much like HiveMind), which is key to plugin support with zero configuration.

  2. Eelco Says:

    Guice looks like a very elegant piece of code. For that alone I like it a lot.

  3. porn Says:

    porn

  4. porn Says:

    porn

  5. canton car new price Says:

    [...]to think of things in that context. Generics support is first class etc.[...]

  6. replicahandbags Says:

    thanks for sharing,generous blogger

  7. wholesale replica bags Says:

    thank you!

  8. Replica handbags Says:

    we get into a “Spring vs. Guice” mindset, let’s remember how incredibly different they are.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'