I want to start using guice in an existing application that has legacy code. Are there any pointers and BKM’s on how to start doing that?
I found one approach here, and looking to get some further information and details.
Thanks!
EDIT: some more details about my app: it is a server app, that is running in a home-built server application, so there is no gui involved. It has a lot of legacy code that I have doubts if/how to migrate it.
Expect to be confused for a while. I was anyways. I love the video on the Guice home page.
I think incorporating Guice, or any dependency injection framework, into your application was accurately described to me as like pulling on a thread in a sweater and never really finding the end. What I mean by that, is that it could change your approach in several areas of your applications. Like, from servlets, to jdbc frameworks (we use mybatis-guice), to unit tests (check out jukito).
The Guice user group is a good resource.
Don’t expect to do it all at once. It can take some time to get fully into developing the Guice way.