| Constructor and Description |
|---|
HookContext() |
| Modifier and Type | Method and Description |
|---|---|
static <T> HookContext<T> |
from(String key,
FlagValueType type,
Metadata clientMetadata,
Metadata providerMetadata,
EvaluationContext ctx,
T defaultValue)
Builds a
HookContext instances from request data. |
public static <T> HookContext<T> from(String key, FlagValueType type, Metadata clientMetadata, Metadata providerMetadata, EvaluationContext ctx, T defaultValue)
HookContext instances from request data.T - type that the flag is evaluating againstkey - feature flag keytype - flag value typeclientMetadata - info on which client is callingproviderMetadata - info on the providerctx - Evaluation Context for the requestdefaultValue - Fallback valueCopyright © 2023. All rights reserved.