org.apache.dubbo.common.utils.Assert.notEmptyString()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.apache.dubbo.common.utils.Assert.notEmptyString()方法的一些代码示例,展示了Assert.notEmptyString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.notEmptyString()方法的具体详情如下:
包路径:org.apache.dubbo.common.utils.Assert
类名称:Assert
方法名:notEmptyString

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));
  }
}

相关文章