javaspringfeaturetoggle

Feature toggle in spring context


I want to use the feature-toggle paradigm. Specifically, I want my Spring contexts to contain different bean definitions based on a toggle.

I've come across this: http://robertmaldon.blogspot.com/2007/04/conditionally-defining-spring-beans.html, which looks ok, but maybe a bit too cumbersome


Solution

  • You can use spring profiles - in short, you run your application with a profile setting, and the context contains different beans depending on that profile.