io.quarkiverse.unleash.runtime.ToggleVariantStringProducer Maven / Gradle / Ivy
package io.quarkiverse.unleash.runtime;
import jakarta.enterprise.inject.Produces;
import jakarta.enterprise.inject.spi.InjectionPoint;
import jakarta.inject.Inject;
import io.getunleash.Unleash;
import io.quarkiverse.unleash.FeatureVariant;
public class ToggleVariantStringProducer extends AbstractVariantProducer {
@Inject
Unleash unleash;
@Produces
@FeatureVariant(name = "ignored")
String variantProducer(InjectionPoint injectionPoint) {
return getVariantString(injectionPoint, unleash);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy