Class ContractClient


  • public abstract class ContractClient
    extends java.lang.Object
    Base creator of ContractClients
    Since:
    0.2.0
    Author:
    Alexandre Carvalho, Andre Bertolace
    • Constructor Detail

      • ContractClient

        public ContractClient()
    • 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 interface
        client - the client to use
        Returns:
        a proxy client instance