
de.otto.edison.togglz.util.FeatureManagerSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-togglz Show documentation
Show all versions of edison-togglz Show documentation
Status library of the edison-microservice project.
package de.otto.edison.togglz.util;
import org.togglz.core.Feature;
import java.util.Optional;
import static org.togglz.core.context.FeatureContext.getFeatureManager;
public class FeatureManagerSupport {
public static Optional getFeatureFromName(String name) {
return getFeatureManager().getFeatures().stream().filter(feature -> feature.name().equals(name)).findAny();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy