https://github.com/wingify/vwo-openfeature-provider-java
Openfeature Provider for VWO Java SDK
https://github.com/wingify/vwo-openfeature-provider-java
Last synced: 3 months ago
JSON representation
Openfeature Provider for VWO Java SDK
- Host: GitHub
- URL: https://github.com/wingify/vwo-openfeature-provider-java
- Owner: wingify
- License: apache-2.0
- Created: 2024-07-12T10:54:45.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-12T11:02:30.000Z (11 months ago)
- Last Synced: 2025-01-14T01:10:17.454Z (5 months ago)
- Language: Java
- Size: 10.7 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# VWO OpenFeature Provider JAVA
[](http://www.apache.org/licenses/LICENSE-2.0)
## Requirements
The Java SDK supports:
* Open JDK - 8 onwards
* Oracle JDK - 8 onwards## SDK Installation
Install dependencies using `mvn install`
Add below Maven dependency in your project.
```java
com.vwo.sdk
vwo-openfeature-provider-java
LATEST```
## Basic Usage
```java
import dev.openfeature.sdk.*;
import com.vwo.VWOProvider;
import java.util.Map;
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
Map options = new HashMap<>();
options.put("accountId", 1234);
options.put("sdkKey", "32-alpha-numeric-sdk-key");
api.setProvider(new VWOProvider(vwoClient));
EvaluationContext context = new ImmutableContext(new HashMap() {
{
put("userId", new Value("user1")); // userId
put("key", new Value("variableKey")); // variable key
put("customVariables", new Value(new ImmutableContext(new HashMap() {
{
put("key", new Value("value"));
}
})));
}
});
Client vwoClient = api.getClient("vwo-openfeature-provider-java-provider");
apiClient.getStringValue("featureKey", "defaultValue", context)
```For more appenders, refer [this](https://logback.qos.ch/manual/appenders.html).
## Authors
* [Abhishek Joshi](https://github.com/Abhi591)
## Changelog
Refer [CHANGELOG.md](https://github.com/wingify/vwo-openfeature-provider-java/blob/master/CHANGELOG.md)
## Contributing
Please go through our [contributing guidelines](https://github.com/wingify/vwo-openfeature-provider-java/blob/master/CONTRIBUTING.md)
## Code of Conduct
[Code of Conduct](https://github.com/wingify/vwo-openfeature-provider-java/blob/master/CODE_OF_CONDUCT.md)
## License
[Apache License, Version 2.0](https://github.com/wingify/vwo-openfeature-provider-java/blob/master/LICENSE)
Copyright 2024 Wingify Software Pvt. Ltd.