Package org.springframework.nativex
Class AotOptions
- java.lang.Object
-
- org.springframework.nativex.AotOptions
-
public class AotOptions extends Object
AOT options for Spring Native.- Author:
- Sebastien Deleuze, Andy Clement
-
-
Constructor Summary
Constructors Constructor Description AotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMode()
Should be eithernative
ornative-agent
boolean
isDebugVerify()
Determine if extra debug should come out related to verification of reflection requests.boolean
isRemoveJmxSupport()
Removes Spring Boot JMX support to optimize the footprint when set totrue
.boolean
isRemoveSpelSupport()
Removes Spring SpEL support to optimize the footprint when set totrue
.boolean
isRemoveXmlSupport()
Removes Spring XML support (XML converters, codecs and XML application context support) when set totrue
.boolean
isRemoveYamlSupport()
Removes Spring Boot Yaml support to optimize the footprint when set totrue
.boolean
isVerify()
Determine whether to check Spring components are suitable for inclusion in a native-image.void
setDebugVerify(boolean debugVerify)
void
setMode(String mode)
void
setRemoveJmxSupport(boolean removeJmxSupport)
void
setRemoveSpelSupport(boolean removeSpelSupport)
void
setRemoveXmlSupport(boolean removeXmlSupport)
void
setRemoveYamlSupport(boolean removeYamlSupport)
void
setVerify(boolean verify)
Mode
toMode()
-
-
-
Method Detail
-
isVerify
public boolean isVerify()
Determine whether to check Spring components are suitable for inclusion in a native-image. For a concrete example, verification currently checks whether bean factory methods are being invoked directly in configuration classes. If they are then that must be enforced by using CGLIB proxies. CGLIB proxies are not supported in native-image and so a verification error will come out with a message indicating the code should switch to method parameter injection (allowing Spring to control bean method invocation).
-
setVerify
public void setVerify(boolean verify)
- See Also:
isVerify()
-
isRemoveYamlSupport
public boolean isRemoveYamlSupport()
Removes Spring Boot Yaml support to optimize the footprint when set totrue
.
-
setRemoveYamlSupport
public void setRemoveYamlSupport(boolean removeYamlSupport)
- See Also:
isRemoveYamlSupport()
-
isRemoveJmxSupport
public boolean isRemoveJmxSupport()
Removes Spring Boot JMX support to optimize the footprint when set totrue
.
-
setRemoveJmxSupport
public void setRemoveJmxSupport(boolean removeJmxSupport)
- See Also:
isRemoveJmxSupport()
-
isDebugVerify
public boolean isDebugVerify()
Determine if extra debug should come out related to verification of reflection requests. Spring Native will compute configuration but a final stage verification runs before it is written out to try and ensure what is requested will not lead to problems when the native-image is built. This flag enables debugging of that final stage verification.
-
setDebugVerify
public void setDebugVerify(boolean debugVerify)
- See Also:
isDebugVerify()
-
isRemoveXmlSupport
public boolean isRemoveXmlSupport()
Removes Spring XML support (XML converters, codecs and XML application context support) when set totrue
.
-
setRemoveXmlSupport
public void setRemoveXmlSupport(boolean removeXmlSupport)
- See Also:
isRemoveXmlSupport()
-
isRemoveSpelSupport
public boolean isRemoveSpelSupport()
Removes Spring SpEL support to optimize the footprint when set totrue
.
-
setRemoveSpelSupport
public void setRemoveSpelSupport(boolean removeSpelSupport)
- See Also:
isRemoveSpelSupport()
-
toMode
public Mode toMode()
-
-