public class FeatureManagerBootstrapper extends Object
This class is used to automatically bootstrap a FeatureManager for Togglz which is the default behavior for simple
web applications. The bootstrap process heavily relies on the BeanFinder SPI.
The bootstrapping process consists of the following steps:
TogglzBootstrap interface. If this lookup is successful, a
FeatureManager is created from it and returned.TogglzConfig interface. If an
implementation is found, it is used to build a FeatureManager using
FeatureManagerBuilder.togglzConfig(TogglzConfig) which will be returned to the caller.| Constructor and Description |
|---|
FeatureManagerBootstrapper() |
| Modifier and Type | Method and Description |
|---|---|
FeatureManager |
createFeatureManager(Object context)
Tries to automatically build and configure a
FeatureManager like described above. |
public FeatureManager createFeatureManager(Object context)
FeatureManager like described above.context - An optional context object which is provided to the BeanFinder implementations. This parameter is
for example used in web application to supply the ServletContext.FeatureManagerIllegalStateException - if the bootstrapping process failedCopyright © 2018. All Rights Reserved.