站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

SpringVersion (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core
Class SpringVersion

java.lang.Object
  extended by org.springframework.core.SpringVersion

public class SpringVersion
extends Object

Class that exposes the Spring version. Fetches the "Implementation-Version" manifest attribute from the jar file.

Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Spring version in all environments. Consider using a reflection-based check instead: For example, checking for the presence of a specific Spring 2.0 method that you intend to call.

Since:
1.1
Author:
Juergen Hoeller

Constructor Summary
SpringVersion()
           
 
Method Summary
static String 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 static String getVersion()
Return the full version string of the present Spring codebase, or null if it cannot be determined.

See Also:
Package.getImplementationVersion()


Copyright (c) 2002-2007 The Spring Framework Project.