@@ -16,35 +16,29 @@ The `flagd-api` module defines the core interfaces that can be implemented by di
1616<dependency >
1717 <groupId >dev.openfeature.contrib.tools</groupId >
1818 <artifactId >flagd-api</artifactId >
19- <version >0.1 .0</version > <!-- x-release-please-version -->
19+ <version >1.0 .0</version > <!-- x-release-please-version -->
2020</dependency >
2121```
2222
2323## Interfaces
2424
2525### Evaluator
2626
27- The ` Evaluator ` interface handles flag resolution:
27+ The ` Evaluator ` interface handles flag storage and resolution:
2828
2929``` java
3030public interface Evaluator {
31- ProviderEvaluation<Boolean > resolveBooleanValue (String flagKey , EvaluationContext ctx );
32- ProviderEvaluation<String > resolveStringValue (String flagKey , EvaluationContext ctx );
33- ProviderEvaluation<Integer > resolveIntegerValue (String flagKey , EvaluationContext ctx );
34- ProviderEvaluation<Double > resolveDoubleValue (String flagKey , EvaluationContext ctx );
35- ProviderEvaluation<Value > resolveObjectValue (String flagKey , EvaluationContext ctx );
36- }
37- ```
38-
39- ### FlagStore
40-
41- The ` FlagStore ` interface handles flag configuration storage and updates:
42-
43- ``` java
44- public interface FlagStore {
31+ // flag store methods
4532 void setFlags (String flagConfigurationJson ) throws FlagStoreException ;
4633 List<String > setFlagsAndGetChangedKeys (String flagConfigurationJson ) throws FlagStoreException ;
4734 Map<String , Object > getFlagSetMetadata ();
35+
36+ // flag evaluation methods
37+ ProviderEvaluation<Boolean > resolveBooleanValue (String flagKey , Boolean defaultValue , EvaluationContext ctx );
38+ ProviderEvaluation<String > resolveStringValue (String flagKey , String defaultValue , EvaluationContext ctx );
39+ ProviderEvaluation<Integer > resolveIntegerValue (String flagKey , Integer defaultValue , EvaluationContext ctx );
40+ ProviderEvaluation<Double > resolveDoubleValue (String flagKey , Double defaultValue , EvaluationContext ctx );
41+ ProviderEvaluation<Value > resolveObjectValue (String flagKey , Value defaultValue , EvaluationContext ctx );
4842}
4943```
5044
0 commit comments