Class AotWithSpringDetector
java.lang.Object
org.apache.dubbo.config.spring.aot.AotWithSpringDetector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property that indicates the application should run with AOT generated artifacts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanDetermine whether AOT optimizations must be considered at runtime.
-
Field Details
-
AOT_ENABLED
System property that indicates the application should run with AOT generated artifacts. If such optimizations are not available, it is recommended to throw an exception rather than fall back to the regular runtime behavior.- See Also:
-
-
Constructor Details
-
AotWithSpringDetector
public AotWithSpringDetector()
-
-
Method Details
-
useGeneratedArtifacts
public static boolean useGeneratedArtifacts()Determine whether AOT optimizations must be considered at runtime. This is mandatory in a native image but can be triggered on the JVM using the "spring.aot.enabled" Spring property.- Returns:
- whether AOT optimizations must be considered
-
isAotProcessing
public static boolean isAotProcessing()
-