O'Reilly logo

Test-Driven Java Development - Second Edition by Viktor Farcic, Alex Garcia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Feature Toggles are a nice way to hide and/or handle partially finished functionalities in production environments. This may sound weird for those deploying code to production on demand, but it is quite common to find this situation when practicing continuous integration, delivery, or deployment.

We have introduced the technique and discussed the pros and cons. We have also enumerated some of the typical cases where toggling features can be helpful. Finally, we have implemented two different use cases: a Feature Toggle with a very simple REST API, and a Feature Toggle in a web application.

Although the code presented in this chapter is fully functional, it isn't very common to use a file-based property system for this matter. There ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required