本文整理了Java中org.apache.dubbo.common.utils.Assert.notEmptyString()
方法的一些代码示例,展示了Assert.notEmptyString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.notEmptyString()
方法的具体详情如下:
包路径:org.apache.dubbo.common.utils.Assert
类名称:Assert
方法名:notEmptyString
暂无
代码示例来源:origin: apache/incubator-dubbo
/**
* This constructor create an instance of ConsumerModel and passed objects should not be null.
* If service name, service instance, proxy object,methods should not be null. If these are null
* then this constructor will throw {@link IllegalArgumentException}
* @param serviceName Name of the service.
* @param serviceInterfaceClass Service interface class.
* @param proxyObject Proxy object.
* @param methods Methods of service class
* @param attributes Attributes of methods.
*/
public ConsumerModel(String serviceName
, Class<?> serviceInterfaceClass
, Object proxyObject
, Method[] methods
, Map<String, Object> attributes) {
Assert.notEmptyString(serviceName, "Service name can't be null or blank");
Assert.notNull(serviceInterfaceClass, "Service interface class can't null");
Assert.notNull(proxyObject, "Proxy object can't be null");
Assert.notNull(methods, "Methods can't be null");
this.serviceName = serviceName;
this.serviceInterfaceClass = serviceInterfaceClass;
this.proxyObject = proxyObject;
for (Method method : methods) {
methodModels.put(method, new ConsumerMethodModel(method, attributes));
}
}
代码示例来源:origin: apache/incubator-dubbo
/**
* This constructor create an instance of ConsumerModel and passed objects should not be null.
* If service name, service instance, proxy object,methods should not be null. If these are null
* then this constructor will throw {@link IllegalArgumentException}
* @param serviceName Name of the service.
* @param serviceInterfaceClass Service interface class.
* @param proxyObject Proxy object.
* @param methods Methods of service class
* @param attributes Attributes of methods.
*/
public ConsumerModel(String serviceName
, Class<?> serviceInterfaceClass
, Object proxyObject
, Method[] methods
, Map<String, Object> attributes) {
Assert.notEmptyString(serviceName, "Service name can't be null or blank");
Assert.notNull(serviceInterfaceClass, "Service interface class can't null");
Assert.notNull(proxyObject, "Proxy object can't be null");
Assert.notNull(methods, "Methods can't be null");
this.serviceName = serviceName;
this.serviceInterfaceClass = serviceInterfaceClass;
this.proxyObject = proxyObject;
for (Method method : methods) {
methodModels.put(method, new ConsumerMethodModel(method, attributes));
}
}
代码示例来源:origin: org.apache.dubbo/dubbo-rpc-api
/**
* This constructor create an instance of ConsumerModel and passed objects should not be null.
* If service name, service instance, proxy object,methods should not be null. If these are null
* then this constructor will throw {@link IllegalArgumentException}
* @param serviceName Name of the service.
* @param serviceInterfaceClass Service interface class.
* @param proxyObject Proxy object.
* @param methods Methods of service class
* @param attributes Attributes of methods.
*/
public ConsumerModel(String serviceName
, Class<?> serviceInterfaceClass
, Object proxyObject
, Method[] methods
, Map<String, Object> attributes) {
Assert.notEmptyString(serviceName, "Service name can't be null or blank");
Assert.notNull(serviceInterfaceClass, "Service interface class can't null");
Assert.notNull(proxyObject, "Proxy object can't be null");
Assert.notNull(methods, "Methods can't be null");
this.serviceName = serviceName;
this.serviceInterfaceClass = serviceInterfaceClass;
this.proxyObject = proxyObject;
for (Method method : methods) {
methodModels.put(method, new ConsumerMethodModel(method, attributes));
}
}
代码示例来源:origin: org.apache.dubbo/dubbo
/**
* This constructor create an instance of ConsumerModel and passed objects should not be null.
* If service name, service instance, proxy object,methods should not be null. If these are null
* then this constructor will throw {@link IllegalArgumentException}
* @param serviceName Name of the service.
* @param serviceInterfaceClass Service interface class.
* @param proxyObject Proxy object.
* @param methods Methods of service class
* @param attributes Attributes of methods.
*/
public ConsumerModel(String serviceName
, Class<?> serviceInterfaceClass
, Object proxyObject
, Method[] methods
, Map<String, Object> attributes) {
Assert.notEmptyString(serviceName, "Service name can't be null or blank");
Assert.notNull(serviceInterfaceClass, "Service interface class can't null");
Assert.notNull(proxyObject, "Proxy object can't be null");
Assert.notNull(methods, "Methods can't be null");
this.serviceName = serviceName;
this.serviceInterfaceClass = serviceInterfaceClass;
this.proxyObject = proxyObject;
for (Method method : methods) {
methodModels.put(method, new ConsumerMethodModel(method, attributes));
}
}
内容来源于网络,如有侵权,请联系作者删除!