| 程序包 | 说明 |
|---|---|
| com.alipay.sofa.rpc.common.utils | |
| com.alipay.sofa.rpc.config |
| 限定符和类型 | 方法和说明 |
|---|---|
static SofaRpcRuntimeException |
ExceptionUtils.buildRuntime(String configKey,
String configValue) |
static SofaRpcRuntimeException |
ExceptionUtils.buildRuntime(String configKey,
String configValue,
String message) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
ClassUtils.newInstance(Class<T> clazz)
实例化一个对象(只检测默认构造函数,其它不管)
|
static <T> T |
ClassUtils.newInstanceWithArgs(Class<T> clazz,
Class<?>[] argTypes,
Object[] args)
实例化一个对象(根据参数自动检测构造方法)
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
ConfigValueHelper.checkNormal(String configKey,
String configValue)
检查字符串是否是正常值,不是则抛出异常
|
protected static void |
ConfigValueHelper.checkNormalWithColon(String configKey,
String configValue)
检查字符串是否是正常值(含冒号),不是则抛出异常
|
protected static void |
ConfigValueHelper.checkNormalWithComma(String configKey,
String configValue)
检查字符串是否是正常值(含逗号),不是则抛出异常
|
protected static void |
ConfigValueHelper.checkNormalWithCommaColon(String configKey,
String configValue)
检查字符串是否是正常值(含冒号),不是则抛出异常
|
protected static void |
ConfigValueHelper.checkNotNegativeInteger(String configKey,
int configValue)
检查数字是否为非负数(>=0)
|
protected static void |
ConfigValueHelper.checkPattern(String configKey,
String configValue,
Pattern pattern,
String message)
根据正则表达式检查字符串是否是正常值(含冒号),不是则抛出异常
|
protected static void |
ConfigValueHelper.checkPositiveInteger(String configKey,
int configValue)
检查数字是否为正整数(>0)
|
Copyright © 2008–2018 The Ant Financial. All rights reserved.