Package io.getunleash.repository
Class ToggleBootstrapFileProvider
java.lang.Object
io.getunleash.repository.ToggleBootstrapFileProvider
- All Implemented Interfaces:
ToggleBootstrapProvider
-
Constructor Summary
ConstructorsConstructorDescriptionAccepts path to file to read either as constructor parameter or as environment variable in "UNLEASH_BOOTSTRAP_FILE" -
Method Summary
Modifier and TypeMethodDescriptionread()Should return JSON string parsable to /api/client/features format Look in src/test/resources/features-v1.json or src/test/resources/unleash-repo-v1.json for example Example inToggleBootstrapFileProvider
-
Constructor Details
-
ToggleBootstrapFileProvider
public ToggleBootstrapFileProvider() -
ToggleBootstrapFileProvider
Accepts path to file to read either as constructor parameter or as environment variable in "UNLEASH_BOOTSTRAP_FILE"- Parameters:
path- - path to toggles file
-
-
Method Details
-
read
Description copied from interface:ToggleBootstrapProviderShould return JSON string parsable to /api/client/features format Look in src/test/resources/features-v1.json or src/test/resources/unleash-repo-v1.json for example Example inToggleBootstrapFileProvider- Specified by:
readin interfaceToggleBootstrapProvider- Returns:
- JSON string representing a response from /api/client/features
-