Class EndpointProxy
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.services.EndpointProxy
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class EndpointProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler
A Proxy that wraps anEndpoint
in one or more service interfaces, i.e. interfaces containingJsonNotification
andJsonRequest
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()
-
-
-
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 interfacejava.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 classjava.lang.Object
-
-