public final class Version extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DUBBO_PROTOCOL_VERSION |
static int |
LEGACY_DUBBO_PROTOCOL_VERSION |
| Modifier and Type | Method and Description |
|---|---|
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 final String DEFAULT_DUBBO_PROTOCOL_VERSION
public static final int LEGACY_DUBBO_PROTOCOL_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–2020 The Apache Software Foundation. All rights reserved.