| Package | Description |
|---|---|
| dev.openfeature.sdk |
| Modifier and Type | Method and Description |
|---|---|
static <T> HookContext<T> |
HookContext.from(String key,
FlagValueType type,
Metadata clientMetadata,
Metadata providerMetadata,
EvaluationContext ctx,
T defaultValue)
Builds a
HookContext instances from request data. |
| Modifier and Type | Method and Description |
|---|---|
default void |
Hook.after(HookContext<T> ctx,
FlagEvaluationDetails<T> details,
Map<String,Object> hints)
Runs after a flag is resolved.
|
default Optional<EvaluationContext> |
Hook.before(HookContext<T> ctx,
Map<String,Object> hints)
Runs before flag is resolved.
|
default void |
Hook.error(HookContext<T> ctx,
Exception error,
Map<String,Object> hints)
Run when evaluation encounters an error.
|
default void |
Hook.finallyAfter(HookContext<T> ctx,
Map<String,Object> hints)
Run after flag evaluation, including any error processing.
|
Copyright © 2023. All rights reserved.