类 SpringVersionUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.spring.util.SpringVersionUtils
-
public abstract class SpringVersionUtils extends io.microsphere.util.BaseUtils
The Utilities class for Spring Framework Version- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
SpringVersion
,SpringVersion
,Version
-
-
字段概要
字段 修饰符和类型 字段 说明 static io.microsphere.util.Version
SPRING_AOP_VERSION
The version of "spring-aop" modulestatic java.lang.String
SPRING_BASE_PACKAGE_NAME
static io.microsphere.util.Version
SPRING_BEANS_VERSION
The version of "spring-beans" modulestatic io.microsphere.util.Version
SPRING_CONTEXT_SUPPORT_VERSION
The version of "spring-context" modulestatic io.microsphere.util.Version
SPRING_CONTEXT_VERSION
The version of "spring-context" modulestatic io.microsphere.util.Version
SPRING_CORE_VERSION
The version of "spring-core" module
-
构造器概要
构造器 构造器 说明 SpringVersionUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static io.microsphere.util.Version
getSpringVersion(java.lang.Class<?> springClass)
Get theVersion
from the Spring classstatic io.microsphere.util.Version
getSpringVersion(java.lang.String springClassName)
Get theVersion
from the Spring class
-
-
-
字段详细资料
-
SPRING_BASE_PACKAGE_NAME
public static final java.lang.String SPRING_BASE_PACKAGE_NAME
- 另请参阅:
- 常量字段值
-
SPRING_CORE_VERSION
@NonNull public static final io.microsphere.util.Version SPRING_CORE_VERSION
The version of "spring-core" module
-
SPRING_AOP_VERSION
@Nullable public static final io.microsphere.util.Version SPRING_AOP_VERSION
The version of "spring-aop" module
-
SPRING_BEANS_VERSION
@NonNull public static final io.microsphere.util.Version SPRING_BEANS_VERSION
The version of "spring-beans" module
-
SPRING_CONTEXT_VERSION
@NonNull public static final io.microsphere.util.Version SPRING_CONTEXT_VERSION
The version of "spring-context" module
-
SPRING_CONTEXT_SUPPORT_VERSION
@Nullable public static final io.microsphere.util.Version SPRING_CONTEXT_SUPPORT_VERSION
The version of "spring-context" module
-
-
方法详细资料
-
getSpringVersion
@Nullable public static io.microsphere.util.Version getSpringVersion(java.lang.String springClassName) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
Get theVersion
from the Spring class- 参数:
springClassName
- the Spring class name- 返回:
null
of the specified class can't be found by its' name the "Implementation-Version" attribute is absent in the "META-INF/MANIFEST.MF" resource- 抛出:
java.lang.NullPointerException
- ifspringClass
isnull
java.lang.IllegalArgumentException
- if the package name ofspringClass
does not start with "org.springframework"java.lang.IllegalStateException
- if the "Implementation-Version" attribute is absent in the "META-INF/MANIFEST.MF" resource
-
getSpringVersion
@NonNull public static io.microsphere.util.Version getSpringVersion(java.lang.Class<?> springClass) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
Get theVersion
from the Spring class- 参数:
springClass
- the Spring class- 返回:
- non-null
- 抛出:
java.lang.NullPointerException
- ifspringClass
isnull
java.lang.IllegalArgumentException
- if the package name ofspringClass
does not start with "org.springframework"java.lang.IllegalStateException
- if the "Implementation-Version" attribute is absent in the "META-INF/MANIFEST.MF" resource
-
-