File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -352,4 +352,22 @@ Using SwitcherTestWhen to define a specific condition for the test:
352352void testMyFeature() {
353353 assertTrue(instance. myFeature());
354354}
355- ```
355+ ```
356+
357+ ## Native Image
358+ Switcher Client is fully compatible with GraalVM Native Image out of the box.
359+ </br >Here is how you can configure the SDK to work with GraalVM:
360+ ``` java
361+ @ConfigurationProperties
362+ public class MyNativeAppFeatureFlags extends SwitcherContextBase {
363+
364+ public static final String MY_SWITCHER = " MY_SWITCHER" ;
365+ @Override
366+ @PostConstruct
367+ protected void configureClient () {
368+ super . configureClient();
369+ super . registerSwitcherKeys(MY_SWITCHER );
370+ }
371+ }
372+ ```
373+ Check out more code examples in the [ Switcher Tutorials] ( https://github.com/switcherapi/switcherapi-tutorials ) repository.
Original file line number Diff line number Diff line change 88 <groupId >com.github.switcherapi</groupId >
99 <artifactId >switcher-client</artifactId >
1010 <packaging >jar</packaging >
11- <version >1.6.1-SNAPSHOT </version >
11+ <version >1.6.1</version >
1212
1313 <name >Switcher Client</name >
1414 <description >Switcher Client SDK for working with Switcher API</description >
You can’t perform that action at this time.
0 commit comments