Package org.springframework.nativex
Class AotOptions
- java.lang.Object
-
- org.springframework.nativex.AotOptions
-
public class AotOptions extends java.lang.ObjectAOT 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 java.lang.StringgetMode()Should be eithernativeornative-agentbooleanisDebugVerify()Determine if extra debug should come out related to verification of reflection requests.booleanisRemoveJmxSupport()Removes Spring Boot JMX support to optimize the footprint when set totrue.booleanisRemoveSpelSupport()Removes Spring SpEL support to optimize the footprint when set totrue.booleanisRemoveXmlSupport()Removes Spring XML support (XML converters, codecs and XML application context support) when set totrue.booleanisRemoveYamlSupport()Removes Spring Boot Yaml support to optimize the footprint when set totrue.booleanisVerify()Determine whether to check Spring components are suitable for inclusion in a native-image.voidsetDebugVerify(boolean debugVerify)voidsetMode(java.lang.String mode)voidsetRemoveJmxSupport(boolean removeJmxSupport)voidsetRemoveSpelSupport(boolean removeSpelSupport)voidsetRemoveXmlSupport(boolean removeXmlSupport)voidsetRemoveYamlSupport(boolean removeYamlSupport)voidsetVerify(boolean verify)ModetoMode()
-
-
-
Method Detail
-
getMode
public java.lang.String getMode()
Should be eithernativeornative-agent- See Also:
toMode()
-
setMode
public void setMode(java.lang.String mode)
- See Also:
getMode()
-
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()
-
-