Class NativeDetector
java.lang.Object
nl.basjes.parse.useragent.utils.springframework.core.NativeDetector
A common delegate for detecting a GraalVM native image environment.
Requires using the -H:+InlineBeforeAnalysis
native image compiler flag in order to allow code removal at
build time.
- Since:
- 5.3.4
- Author:
- Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returnstrue
if invoked in the context of image building or during image runtime, elsefalse
.
-
Constructor Details
-
NativeDetector
public NativeDetector()
-
-
Method Details
-
inNativeImage
public static boolean inNativeImage()Returnstrue
if invoked in the context of image building or during image runtime, elsefalse
.
-