I am working on application and recently got a requirement. In that requirement i have to make different module and all the modules can talk to each other or they can work independently. So i used spring as interface for each module. Each module defines it's dependency in spring file. I was wondering if anybody worked on same kind of requirement where you need different components in spring based application but module should be able to work independently based on configuration.