Package org.togglz.core.context
Class StaticFeatureManagerProvider
java.lang.Object
org.togglz.core.context.StaticFeatureManagerProvider
- All Implemented Interfaces:
FeatureManagerProvider
,Weighted
Implementation of
FeatureManagerProvider
for Java SE applications. To use it, create a FeatureManager
using
the FeatureManagerBuilder
and register it using setFeatureManager(FeatureManager)
.- Author:
- Christian Kaltepoth
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.togglz.core.util.Weighted
Weighted.WeightedComparator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
priority()
Low priorities are processed first.static void
setFeatureManager
(FeatureManager featureManager) Sets theFeatureManager
that the provider should return for calls togetFeatureManager()
.
-
Constructor Details
-
StaticFeatureManagerProvider
public StaticFeatureManagerProvider()
-
-
Method Details
-
priority
public int priority()Description copied from interface:Weighted
Low priorities are processed first. -
getFeatureManager
- Specified by:
getFeatureManager
in interfaceFeatureManagerProvider
-
setFeatureManager
Sets theFeatureManager
that the provider should return for calls togetFeatureManager()
.
-