public final class Version extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_DUBBO_PROTOCOL_VERSION |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkDuplicate(Class<?> cls) |
static void |
checkDuplicate(Class<?> cls,
boolean failOnError) |
static void |
checkDuplicate(String path,
boolean failOnError) |
static int |
getIntVersion(String version) |
static String |
getProtocolVersion() |
static String |
getVersion() |
static String |
getVersion(Class<?> cls,
String defaultVersion) |
static boolean |
isRelease263OrHigher(String version)
Check the framework release version number to decide if it's 2.6.3 or higher
Because response attachments feature is firstly introduced in 2.6.3
and moreover we have no other approach to know the framework's version, so we use
isSupportResponseAttachment to decide if it's v2.6.3.
|
static boolean |
isRelease270OrHigher(String version)
Check the framework release version number to decide if it's 2.7.0 or higher
|
static boolean |
isSupportResponseAttachment(String version) |
public static String getProtocolVersion()
public static String getVersion()
public static boolean isRelease270OrHigher(String version)
public static boolean isRelease263OrHigher(String version)
public static boolean isSupportResponseAttachment(String version)
public static int getIntVersion(String version)
public static void checkDuplicate(Class<?> cls, boolean failOnError)
public static void checkDuplicate(Class<?> cls)
public static void checkDuplicate(String path, boolean failOnError)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.