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

com.mageddo.togglefirst.activation.NopActivationStrategy Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package com.mageddo.togglefirst.activation;

import com.mageddo.togglefirst.FeatureMetadata;

import java.util.UUID;

/**
 * Just delegate feature check to feature metadata
 */
public class NopActivationStrategy implements ActivationStrategy {

	public static final UUID ID = UUID.fromString("47293db9-dc9e-4f18-a899-68a20dd699d9");

	@Override
	public UUID id() {
		return ID;
	}

	@Override
	public String description() {
		return "Does nothing, delegates to feature metadata";
	}

	@Override
	public boolean isActive(FeatureMetadata featureMetadata, String user) {
		return featureMetadata.isActive();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy