Package com.tnsai.spi

Class FeatureFlags

java.lang.Object
com.tnsai.spi.FeatureFlags

public final class FeatureFlags extends Object
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 Details

    • get

      public static FeatureFlag get()
    • install

      public static void install(FeatureFlag flag)
      Process-wide override for tests. Pass null to restore discovery.
    • allowGoapAutoDiscover

      public static boolean allowGoapAutoDiscover(FlagContext context)
      FeatureFlag.GOAP auto-discover gate. Unset env keeps today's classpath discover (grandfather). TNSAI_FLAG_GOAP=off skips it.