Package org.togglz.core.context
Class ContextClassLoaderFeatureManagerProvider
- java.lang.Object
-
- org.togglz.core.context.ContextClassLoaderFeatureManagerProvider
-
- All Implemented Interfaces:
FeatureManagerProvider,Weighted
public class ContextClassLoaderFeatureManagerProvider extends Object implements FeatureManagerProvider
This implementation ofFeatureManagerProviderstores oneFeatureManagerfor each context class loader.- Author:
- Christian Kaltepoth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.togglz.core.util.Weighted
Weighted.WeightedComparator
-
-
Constructor Summary
Constructors Constructor Description ContextClassLoaderFeatureManagerProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbind(FeatureManager featureManager)Binds theFeatureManagerto the current context class loader .FeatureManagergetFeatureManager()intpriority()Low priorities are processed first.static voidrelease()Releases theFeatureManagerassociated with the current context class loader.
-
-
-
Method Detail
-
priority
public int priority()
Description copied from interface:WeightedLow priorities are processed first.
-
getFeatureManager
public FeatureManager getFeatureManager()
- Specified by:
getFeatureManagerin interfaceFeatureManagerProvider
-
bind
public static void bind(FeatureManager featureManager)
Binds theFeatureManagerto the current context class loader .
-
release
public static void release()
Releases theFeatureManagerassociated with the current context class loader.
-
-