Skip to content

rollout/cloudbees-openfeature-provider-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees Feature Management provider for OpenFeature

OpenFeature Specification OpenFeature SDK CloudBees Rox SDK Known Vulnerabilities

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.

Requirements

  • Java 8+

Installation

Add it to your build

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'
}

Configuration

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));

About

An OpenFeature provider for CloudBees Feature Management

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages