|
48 | 48 |
|
49 | 49 | - Java 8+ (compiler target is 1.8) |
50 | 50 |
|
51 | | -Note that this library is intended to be used in server-side contexts and has not been evaluated for use in mobile devices. |
| 51 | +Note that this library is intended to be used in server-side contexts and has not been evaluated for use on mobile devices. |
52 | 52 |
|
53 | 53 | ### Install |
54 | 54 |
|
@@ -282,15 +282,15 @@ To register a `ThreadLocal` context propagator, you can use the `setTransactionC |
282 | 282 | // registering the ThreadLocalTransactionContextPropagator |
283 | 283 | OpenFeatureAPI.getInstance().setTransactionContextPropagator(new ThreadLocalTransactionContextPropagator()); |
284 | 284 | ``` |
285 | | -Once you've registered a transaction context propagator, you can propagate the data into request scoped transaction context. |
| 285 | +Once you've registered a transaction context propagator, you can propagate the data into request-scoped transaction context. |
286 | 286 |
|
287 | 287 | ```java |
288 | 288 | // adding userId to transaction context |
289 | 289 | OpenFeatureAPI api = OpenFeatureAPI.getInstance(); |
290 | 290 | Map<String, Value> transactionAttrs = new HashMap<>(); |
291 | 291 | transactionAttrs.put("userId", new Value("userId")); |
292 | 292 | EvaluationContext transactionCtx = new ImmutableContext(transactionAttrs); |
293 | | -api.setTransactionContext(apiCtx); |
| 293 | +api.setTransactionContext(transactionCtx); |
294 | 294 | ``` |
295 | 295 | Additionally, you can develop a custom transaction context propagator by implementing the `TransactionContextPropagator` interface and registering it as shown above. |
296 | 296 |
|
@@ -390,8 +390,6 @@ class MyEventProvider extends EventProvider { |
390 | 390 | To develop a hook, you need to create a new project and include the OpenFeature SDK as a dependency. |
391 | 391 | This can be a new repository or included in [the existing contrib repository](https://github.com/open-feature/java-sdk-contrib) available under the OpenFeature organization. |
392 | 392 | Implement your own hook by conforming to the `Hook interface`. |
393 | | -To satisfy the interface, all methods (`Before`/`After`/`Finally`/`Error`) need to be defined. |
394 | | -To avoid defining empty functions make use of the `UnimplementedHook` struct (which already implements all the empty functions). |
395 | 393 |
|
396 | 394 | ```java |
397 | 395 | class MyHook implements Hook { |
@@ -434,7 +432,7 @@ class MyHook implements Hook { |
434 | 432 |
|
435 | 433 | Interested in contributing? Great, we'd love your help! To get started, take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide. |
436 | 434 |
|
437 | | -### Thanks to everyone that has already contributed |
| 435 | +### Thanks to everyone who has already contributed |
438 | 436 |
|
439 | 437 | <a href="https://github.com/open-feature/java-sdk/graphs/contributors"> |
440 | 438 | <img src="https://contrib.rocks/image?repo=open-feature/java-sdk" alt="Pictures of the folks who have contributed to the project" /> |
|
0 commit comments