Class Configuration

java.lang.Object
software.amazon.jsii.Configuration

public final class Configuration extends Object
Runtime configuration flags available for the Java jsii runtime.
  • Method Details

    • getRuntimeTypeChecking

      public static boolean getRuntimeTypeChecking()
      Determines whether runtime type checking will be performed in places where APIs accept Object but the underlying model actually uses a type union. Disabling this configuration allows to stop paying the runtime cost of type checking, however it will produce degraded error messages in case of a developer error.
    • setRuntimeTypeChecking

      public void setRuntimeTypeChecking(boolean value)
      Specifies whether runtime type checking will be performed in places where APIs accept Object but the underlying model actually uses a type union. Disabling this configuration allows to stop paying the runtime cost of type checking, however it will produce degraded error messages in case of a developer error.