Package software.amazon.jsii
Class Configuration
java.lang.Object
software.amazon.jsii.Configuration
Runtime configuration flags available for the Java jsii runtime.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines whether runtime type checking will be performed in places where APIs acceptObjectbut the underlying model actually uses a type union.voidsetRuntimeTypeChecking(boolean value) Specifies whether runtime type checking will be performed in places where APIs acceptObjectbut the underlying model actually uses a type union.
-
Method Details
-
getRuntimeTypeChecking
public static boolean getRuntimeTypeChecking()Determines whether runtime type checking will be performed in places where APIs acceptObjectbut 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 acceptObjectbut 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.
-