Class AotOptions


  • public class AotOptions
    extends java.lang.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
      java.lang.String getMode()
      Should be either native or native-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 to true.
      boolean isRemoveSpelSupport()
      Removes Spring SpEL support to optimize the footprint when set to true.
      boolean isRemoveXmlSupport()
      Removes Spring XML support (XML converters, codecs and XML application context support) when set to true.
      boolean isRemoveYamlSupport()
      Removes Spring Boot Yaml support to optimize the footprint when set to true.
      boolean isVerify()
      Determine whether to check Spring components are suitable for inclusion in a native-image.
      void setDebugVerify​(boolean debugVerify)  
      void setMode​(java.lang.String mode)  
      void setRemoveJmxSupport​(boolean removeJmxSupport)  
      void setRemoveSpelSupport​(boolean removeSpelSupport)  
      void setRemoveXmlSupport​(boolean removeXmlSupport)  
      void setRemoveYamlSupport​(boolean removeYamlSupport)  
      void setVerify​(boolean verify)  
      Mode toMode()
      Turn mode to a Mode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AotOptions

        public AotOptions()
    • Method Detail

      • getMode

        public java.lang.String getMode()
        Should be either native or native-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 to true.
      • setRemoveYamlSupport

        public void setRemoveYamlSupport​(boolean removeYamlSupport)
        See Also:
        isRemoveYamlSupport()
      • isRemoveJmxSupport

        public boolean isRemoveJmxSupport()
        Removes Spring Boot JMX support to optimize the footprint when set to true.
      • 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 to true.
      • setRemoveXmlSupport

        public void setRemoveXmlSupport​(boolean removeXmlSupport)
        See Also:
        isRemoveXmlSupport()
      • isRemoveSpelSupport

        public boolean isRemoveSpelSupport()
        Removes Spring SpEL support to optimize the footprint when set to true.
      • setRemoveSpelSupport

        public void setRemoveSpelSupport​(boolean removeSpelSupport)
        See Also:
        isRemoveSpelSupport()