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 of
FeatureManagerProvider stores one FeatureManager for 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbind(FeatureManager featureManager) Binds theFeatureManagerto the current context class loader .intpriority()Low priorities are processed first.static voidrelease()Releases theFeatureManagerassociated with the current context class loader.
-
Constructor Details
-
ContextClassLoaderFeatureManagerProvider
public ContextClassLoaderFeatureManagerProvider()
-
-
Method Details
-
priority
public int priority()Description copied from interface:WeightedLow priorities are processed first. -
getFeatureManager
- Specified by:
getFeatureManagerin interfaceFeatureManagerProvider
-
bind
Binds theFeatureManagerto the current context class loader . -
release
public static void release()Releases theFeatureManagerassociated with the current context class loader.
-