Package com.tnsai.spi
Class FeatureFlags
java.lang.Object
com.tnsai.spi.FeatureFlags
Locator for the process-wide
FeatureFlag (TAN-3392).
Resolution: test install override, else the first
ServiceLoader FeatureFlag, else EnvFeatureFlag.
SPI is optional — missing providers is not an error.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallowGoapAutoDiscover(FlagContext context) FeatureFlag.GOAPauto-discover gate.static FeatureFlagget()static voidinstall(FeatureFlag flag) Process-wide override for tests.
-
Method Details
-
get
-
install
Process-wide override for tests. Passnullto restore discovery. -
allowGoapAutoDiscover
FeatureFlag.GOAPauto-discover gate. Unset env keeps today's classpath discover (grandfather).TNSAI_FLAG_GOAP=offskips it.
-