ff4j : Feature Toggle for Java Platform

ff4J (stands for Feature Flipping for Java) helps you implementing the 'feature toggle' agile development practice.

Features can be enabled and disabled with configuration and at runtime through dedicated consoles.

1. Import Dependency

<dependency>
 <groupId>org.ff4j</groupId>
 <artifactId>ff4j-core</artifactId>
 <version>${project.version}</version>
</dependency>    			  

2. Define Features

<?xml version="1.0" encoding="UTF-8" ?>
<features>
 <feature uid="hello" enable="true" />
 <feature uid="restric" enable="true" >
  <auth role="ADMIN" />
 </feature>
</features>     			  

3. Use it

// Initialisation
FF4j ff4j = new FF4j("ff4j.xml");

if (ff4j.check("sayHello")) {
   System.out.println("Hello World !");
}



stack