ff4j 一些核心概念
了解ff4j 的一些核心概念我们就可以更好的学习以及使用ff4j,以下是一些学习,整理 Feature Feature 主要是用表示应用的一个功能,通过一个唯一的id标示(uid),主要目的是在运行时可以按需启用以及禁用 特性,FF4j 添加了一些属性(比如描述,可选的grouoname)访问控制列表,以及一些flipping 策略,同时我们也可以 添加自己的自定义属性 参考代码使用 // Simplest declaration Feature f1 = new Feature( "f1"); // Declare with description and initial state Feature f2 = new Feature( "f2", false, "sample description"); // Illustrate ACL & Group Set < String > permission = new HashSet < String >(); permission. add( "BETA-TESTER"); permission. add( "VIP"); Feature f3 = new Feature( "f3", false, "sample description", "GROUP_1", permission); // Custom