Class FeatureToggler


  • public class FeatureToggler
    extends java.lang.Object
    FeatureToggler enables developers to toggle on/off features in their code. Developers need to create an enumeration that extends from Feature, define the feature name in a properties file, and set it to true or false. For example my.feature=true. Developers can toggle feature dynamically by looking up the property in the HAC -> Platform -> Configuration.
    See Also:
    IntegrationApiFeature
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isFeatureEnabled​(Feature feature)
      Indicates whether a feature is on (true) or off (false).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isFeatureEnabled

        public static boolean isFeatureEnabled​(Feature feature)
        Indicates whether a feature is on (true) or off (false).
        Parameters:
        feature - The feature to query
        Returns:
        True if feature is enabled, else false