com.alibaba.dubbo.config.model
Class ConsumerModel

java.lang.Object
  extended by com.alibaba.dubbo.config.model.ConsumerModel

public class ConsumerModel
extends Object

Author:
qinliujie

Constructor Summary
ConsumerModel(String serviceName, ReferenceConfig metadata, Object proxyObject, Method[] methods)
           
 
Method Summary
 List<ConsumerMethodModel> getAllMethods()
          返回当前服务下的所有方法模型
 ReferenceConfig getMetadata()
          返回消费服务对应的元数据
 ConsumerMethodModel getMethodModel(Method method)
          根据用户调用的方法对象,返回消费的方法模型
 Object getProxyObject()
           
 String getServiceName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerModel

public ConsumerModel(String serviceName,
                     ReferenceConfig metadata,
                     Object proxyObject,
                     Method[] methods)
Method Detail

getMetadata

public ReferenceConfig getMetadata()
返回消费服务对应的元数据

Returns:
服务元数据

getProxyObject

public Object getProxyObject()

getMethodModel

public ConsumerMethodModel getMethodModel(Method method)
根据用户调用的方法对象,返回消费的方法模型

Parameters:
method - 反射的方法对象
Returns:
方法模型

getAllMethods

public List<ConsumerMethodModel> getAllMethods()
返回当前服务下的所有方法模型

Returns:
方法列表,不会为空

getServiceName

public String getServiceName()


Copyright © 2012–2017 Alibaba. All rights reserved.