Class SpringVersion


  • public class SpringVersion
    extends java.lang.Object
    Class providing a proxy for @SpringVersion This enable mocking and testing of specific situations
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringVersion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Version getVersion()
      Return the full version string of the present Spring codebase, or null if it cannot be determined.
      • Methods inherited from class java.lang.Object

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

      • SpringVersion

        public SpringVersion()
    • Method Detail

      • getVersion

        public Version getVersion()
        Return the full version string of the present Spring codebase, or null if it cannot be determined.
        Returns:
        Spring version
        See Also:
        Package.getImplementationVersion()