1. Do we still need to add the flags in application.properties?
public enum TestFeatureEnum implements Feature {
@Label("Enable Feature 1")
@TestFeatureGroup
FEATURE_1,
@Label("Enable Geo Filter")
FILTER;
public boolean isActive() {
return FeatureContext.getFeatureManager().isActive(this);
}
}
TestFeatureGroup.java
@FeatureGroup
@Label("Performance Improvements")
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestFeatureGroup {
// no content
}