public class FeatureContext extends Object
FeatureManager from application code. It uses the
FeatureManagerProvider to find the correct FeatureManager and caches it for each context class loader.| Constructor and Description |
|---|
FeatureContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
static FeatureManager |
getFeatureManager()
Returns the
FeatureManager for the current application (context class loader). |
static FeatureManager |
getFeatureManagerOrNull()
Returns the
FeatureManager for the current application (context class loader). |
public static FeatureManager getFeatureManager()
FeatureManager for the current application (context class loader). The method uses the
FeatureManagerProvider SPI to find the correct FeatureManager instance. It will throw a runtime exception
if no FeatureManager can be found.FeatureManager for the application, never nullpublic static FeatureManager getFeatureManagerOrNull()
FeatureManager for the current application (context class loader). The method uses the
FeatureManagerProvider SPI to find the correct FeatureManager instance. If not manager could be found,
null is returned.FeatureManager for the application or nullpublic static void clearCache()
Copyright © 2018. All Rights Reserved.