Skip to content

Instantly share code, notes, and snippets.

@nicolopignatelli
Last active March 21, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolopignatelli/5e910ec6ec42a4c480f75464bb802968 to your computer and use it in GitHub Desktop.
Save nicolopignatelli/5e910ec6ec42a4c480f75464bb802968 to your computer and use it in GitHub Desktop.
package com.myproject.myfeature
// Configuration of My Feature
interface Configuration {
// Returns whether the feature is enabled or not
public bool isFeatureEnabled();
}
package com.myproject.myfeature
// ...
if (configuration.isFeatureEnabled()) {
// run feature logic
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment