Skip to content

unlaunch/hello-java

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

hello-java

Hello Unlaunch, from Java!

This is a demo project showing how to integrate the Unlaunch Java SDK in Java applications. It is a Maven project. For more details, read our Getting Started tutorial.

Unlaunch is a free feature flag service. Please visit https://www.unlaunch.io to sign up for a new account today!

Build Procedure

  1. Download code. Edit Hello.java class set your Unlaunch SDK_KEY and FEATURE_FLAG_KEY you want to evaluate as:
private static final String SDK_KEY = "your-sdk-key";
private static finalString FEATURE_FLAG_KEY = "your-flag-key";

By default, we have set these values to an example feature flag. So you can run the code as is.

Then on on the command line, type:

mvn clean compile assembly:single
java -jar target/hello-java-1.0-SNAPSHOT.jar 

When you run the project, it will print something like:

[DEMO] Feature returned variation: on. Evaluation reason: Default Rule served.

About

Unlaunch Java SDK Example project (unlaunch.io)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages