Interface Feature

  • All Known Implementing Classes:
    IntegrationApiFeature

    public interface Feature
    Represents a Feature for feature toggling. The intent of this interface is for enumerations to implement it. In a properties file, also define the property and set to true/false. Here's an example of a Feature implementation: public enum MyFeature implements Feature { MY_FEATURE("my.feature.enabled") private final String property; MyFeature(final String property) { this.property = property; } public String getProperty() { return property; } } In a property file my.feature.enabled=true
    • Method Detail

      • getProperty

        java.lang.String getProperty()
        Gets the property related to the feature enum
        Returns:
        Feature's property name