public class ConsumerModel extends Object
| Constructor and Description |
|---|
ConsumerModel(String serviceName,
Class<?> serviceInterfaceClass,
Object proxyObject,
Method[] methods,
Map<String,Object> attributes)
This constructor create an instance of ConsumerModel and passed objects should not be null.
|
| Modifier and Type | Method and Description |
|---|---|
List<ConsumerMethodModel> |
getAllMethods()
Return all method models for the current service
|
ConsumerMethodModel |
getMethodModel(Method method)
Return method model for the given method on consumer side
|
ConsumerMethodModel |
getMethodModel(String method)
Return method model for the given method on consumer side
|
Object |
getProxyObject()
Return the proxy object used by called while creating instance of ConsumerModel
|
Class<?> |
getServiceInterfaceClass() |
String |
getServiceName() |
public ConsumerModel(String serviceName, Class<?> serviceInterfaceClass, Object proxyObject, Method[] methods, Map<String,Object> attributes)
IllegalArgumentExceptionserviceName - Name of the service.serviceInterfaceClass - Service interface class.proxyObject - Proxy object.methods - Methods of service classattributes - Attributes of methods.public Object getProxyObject()
public ConsumerMethodModel getMethodModel(Method method)
method - method objectpublic ConsumerMethodModel getMethodModel(String method)
method - method objectpublic List<ConsumerMethodModel> getAllMethods()
public Class<?> getServiceInterfaceClass()
public String getServiceName()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.