Package org.togglz.core
Interface Feature
-
- All Known Implementing Classes:
NamedFeature
public interface FeatureThis interface represents a feature and is typically implemented by the feature enum.
Usually it makes sense to implement the following method which allows a very easy way to check the status of a feature.
public boolean isActive() { return FeatureContext.getFeatureManager().isActive(this); }Please note that in Togglz 2.0 the
isActive()method isn't defined in the interface any more. So when updating to Togglz 2.0, you will have to remove theOverrideannotation from your implementation of the method.- Author:
- Christian Kaltepoth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringname()Returns a textual representation of the feature.
-
-
-
Method Detail
-
name
String name()
Returns a textual representation of the feature. This method is implicitly implemented as feature typically are enumerations.- Returns:
- Name of the feature
-
-