public interface TogglzConfig
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Feature> |
getFeatureClass()
Used to tell Togglz about the feature enum that you want to use.
|
StateRepository |
getStateRepository()
The
StateRepository Togglz should use to store feature state. |
UserProvider |
getUserProvider()
The
UserProvider Togglz should use to obtain the current user. |
Class<? extends Feature> getFeatureClass()
Feature interface.nullStateRepository getStateRepository()
The StateRepository Togglz should use to store feature state. Please refer to the Togglz documentation of
a list of default implementations that ship with Togglz.
Please note that this method is only called once. So you can safely implement the method by returning a new instance of an anonymous class.
nullUserProvider getUserProvider()
The UserProvider Togglz should use to obtain the current user. Please refer to the Togglz documentation of
a list of default implementations that ship with Togglz. If you don't want to be able to toggle feature on a per user
basis and are not planning to use the Togglz Console, you can return NoOpUserProvider here.
Please note that this method is only called once. So you can safely implement the method by returning a new instance of an anonymous class.
nullCopyright © 2018. All Rights Reserved.