de.otto.edison.togglz.util.FeatureManagerSupport Maven / Gradle / Ivy
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