Class ContractClient
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.common.ContractClient
-
public abstract class ContractClient extends java.lang.Object
Base creator of ContractClients- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Constructor Summary
Constructors Constructor Description ContractClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
createClientProxy(java.lang.Class<T> proxyInterface, ContractMethodProxy client)
Creates a proxy for a given interfacestatic ContractMethod
getAnnotation(java.lang.reflect.Method method)
static ContractParameter
getAnnotation(java.lang.reflect.Parameter parameter)
static java.lang.String
getMethodName(java.lang.reflect.Method method)
static ContractMethodType
getMethodType(java.lang.reflect.Method method)
static java.lang.String
getParameterName(java.lang.annotation.Annotation annotation)
static ContractParameterType[]
getParameterType(java.lang.annotation.Annotation annotation)
-
-
-
Method Detail
-
getAnnotation
public static ContractMethod getAnnotation(java.lang.reflect.Method method)
-
getAnnotation
public static ContractParameter getAnnotation(java.lang.reflect.Parameter parameter)
-
getMethodName
public static java.lang.String getMethodName(java.lang.reflect.Method method)
-
getMethodType
public static ContractMethodType getMethodType(java.lang.reflect.Method method)
-
getParameterName
public static java.lang.String getParameterName(java.lang.annotation.Annotation annotation)
-
getParameterType
public static ContractParameterType[] getParameterType(java.lang.annotation.Annotation annotation)
-
createClientProxy
public static <T> T createClientProxy(java.lang.Class<T> proxyInterface, ContractMethodProxy client)
Creates a proxy for a given interface- Type Parameters:
T
- the type of the proxy class- Parameters:
proxyInterface
- the proxy interfaceclient
- the client to use- Returns:
- a proxy client instance
-
-