spring feature-toggle

Feature-toggle is an agile development paradigm where features are committed to the main development branch, but are turned off until ready. This avoids merging branches and helps discover conflicts between features early. Another benefit is that QA can test the feature and approve it before it officially appears in the product.

 

Many times, a feature-toggle is just an 'if' statement that wraps the entry code to the feature. E.g. 'if (formValidationFeature) validateForm()'

 

However, in some cases, the feature modifies the top level services in the product. If using Spring, it means modifying the bean declarations. In this post I'd like to quickly show how to do this using Spring 3.1's new profiles feature.

 

The profiles feature allows toggling bean definitions. You can read more about it here

 

ittayd 20/12/2011 - 13:37
Syndicate content