Class EndpointProxy

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class EndpointProxy
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    A Proxy that wraps an Endpoint in one or more service interfaces, i.e. interfaces containing JsonNotification and JsonRequest methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      EndpointProxy​(Endpoint delegate, java.lang.Class<?> interface_)  
      EndpointProxy​(Endpoint delegate, java.util.Collection<java.lang.Class<?>> interfaces)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getParams​(java.lang.Object[] args, org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo methodInfo)  
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EndpointProxy

        public EndpointProxy​(Endpoint delegate,
                             java.lang.Class<?> interface_)
      • EndpointProxy

        public EndpointProxy​(Endpoint delegate,
                             java.util.Collection<java.lang.Class<?>> interfaces)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • getParams

        protected java.lang.Object getParams​(java.lang.Object[] args,
                                             org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo methodInfo)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object