All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.openfeature.contrib.tools.junitopenfeature.OpenFeature Maven / Gradle / Ivy

There is a newer version: 0.1.1
Show newest version
package dev.openfeature.contrib.tools.junitopenfeature;

import org.junit.jupiter.api.extension.ExtendWith;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for generating an extended configuration for OpenFeature.
 * This annotation allows you to specify a list of flags for a specific domain.
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(value = OpenFeatures.class)
@ExtendWith(OpenFeatureExtension.class)
public @interface OpenFeature {
    /**
     * the provider domain used for this configuration.
     */
    String domain() default "";
    /**
     * Collection of {@link Flag} configurations for this domain.
     */
    Flag[] value();
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy