|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.SpringVersion
public class SpringVersion
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.
Constructor Summary | |
---|---|
SpringVersion()
|
Method Summary | |
---|---|
static java.lang.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 |
---|
public SpringVersion()
Method Detail |
---|
public static java.lang.String getVersion()
null
if it cannot be determined.
Package.getImplementationVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |