This is the CloudBees provider implementation for OpenFeature for the Java SDK.
OpenFeature provides a vendor-agnostic abstraction layer on Feature Flag management.
This provider allows the use of CloudBees Feature Management as a backend for Feature Flag configurations.
- Java 8+
Maven:
<dependency>
<groupId>com.cloudbees.openfeature</groupId>
<artifactId>cloudbees-openfeature-provider</artifactId>
<version>1.0.1</version>
</dependency>
Gradle:
dependencies {
implementation 'com.cloudbees.openfeature:cloudbees-openfeature-provider:1.0.1'
}
Follow the instructions on the Java SDK project for how to use the Java SDK.
You can configure the CloudBees provider by doing the following:
import com.cloudbees.openfeature.provider.CloudbeesProvider;
...
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
String appKey = "INSERT_APP_KEY_HERE"
// see Installation Instructions in your dashboard for this key (it is also your environment ID)
api.setProvider(new CloudbeesProvider(appKey));