Created
January 10, 2020 01:11
-
-
Save brunapereira/b555339c217b98309edda1692a21dd7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Service | |
| class SampleService(private val ff4j: FF4j) { | |
| fun callSampleService() { | |
| if (ff4j.isEnabled("some-feature")) { | |
| print("some-feature is enabled") | |
| } | |
| if (ff4j.isDisabled("other-feature")) { | |
| print("other-feature is disabled") | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment