You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,8 +130,15 @@ class MySwitcherClientConfig extends SwitcherContextBase {
130
130
131
131
### Defining your features
132
132
133
-
Create a class that extends SwitcherContext if you are loading the configuration from the switcherapi.properties file.
134
-
Or use SwitcherContextBase to define the configuration using the ContextBuilder or SwitcherConfig.
133
+
Create a class that extends `SwitcherContext` if you are loading the configuration from the switcherapi.properties file.<br>
134
+
Or use `SwitcherContextBase` to define the configuration using the ContextBuilder or SwitcherConfig.
135
+
136
+
Switcher Keys are defined using the @SwitcherKey annotation and must be public static final String.<br>
137
+
- Public because you will need to access it from other places of your code.
138
+
- Static because you will access it without instantiating the class.
139
+
- Final because the value must not be changed during runtime.
140
+
141
+
The attribute name can be defined as you want (e.g. FEATURE01, FEATURE_01, myFeatureOne, etc), but the value must be the exact Switcher Key defined in Switcher Management or snapshot files.
0 commit comments