Package org.togglz.core.context
Class StaticFeatureManagerProvider
- java.lang.Object
-
- org.togglz.core.context.StaticFeatureManagerProvider
-
- All Implemented Interfaces:
FeatureManagerProvider,Weighted
public class StaticFeatureManagerProvider extends Object implements FeatureManagerProvider
Implementation ofFeatureManagerProviderfor Java SE applications. To use it, create aFeatureManagerusing theFeatureManagerBuilderand register it usingsetFeatureManager(FeatureManager).- Author:
- Christian Kaltepoth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.togglz.core.util.Weighted
Weighted.WeightedComparator
-
-
Constructor Summary
Constructors Constructor Description StaticFeatureManagerProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureManagergetFeatureManager()intpriority()Low priorities are processed first.static voidsetFeatureManager(FeatureManager featureManager)Sets theFeatureManagerthat the provider should return for calls togetFeatureManager().
-
-
-
Method Detail
-
priority
public int priority()
Description copied from interface:WeightedLow priorities are processed first.
-
getFeatureManager
public FeatureManager getFeatureManager()
- Specified by:
getFeatureManagerin interfaceFeatureManagerProvider
-
setFeatureManager
public static void setFeatureManager(FeatureManager featureManager)
Sets theFeatureManagerthat the provider should return for calls togetFeatureManager().
-
-