public final class DebugLauncher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DebugLauncher.Builder<T>
Launcher builder for the debug protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> |
createIoLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper)
Create a new Launcher for a given local service object, a given remote
interface and an input and output stream.
|
static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> |
createIoLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper,
java.util.function.Consumer<com.google.gson.GsonBuilder> configureGson)
Create a new Launcher for a given local service object, a given remote
interface and an input and output stream.
|
static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> |
createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out)
Create a new Launcher for a given local service object, a given remote
interface and an input and output stream.
|
static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> |
createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
boolean validate,
java.io.PrintWriter trace)
Create a new Launcher for a given local service object, a given remote
interface and an input and output stream, and set up message validation and
tracing.
|
static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> |
createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper)
Create a new Launcher for a given local service object, a given remote
interface and an input and output stream.
|
public static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out)
localService - - an object on which classes RPC methods are looked upremoteInterface - - an interface on which RPC methods are looked upin - - inputstream to listen for incoming messagesout - - outputstream to send outgoing messagespublic static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
boolean validate,
java.io.PrintWriter trace)
localService - - an object on which classes RPC methods are looked upremoteInterface - - an interface on which RPC methods are looked upin - - inputstream to listen for incoming messagesout - - outputstream to send outgoing messagesvalidate - - whether messages should be validated with the
ReflectiveMessageValidatortrace - - a writer to which incoming and outgoing messages are traced, or
null to disable tracingpublic static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> createLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper)
localService - - an object on which classes RPC methods are looked upremoteInterface - - an interface on which RPC methods are looked upin - - inputstream to listen for incoming messagesout - - outputstream to send outgoing messagesexecutorService - - the executor service used to start threadswrapper - - a function for plugging in additional message consumerspublic static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> createIoLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper)
localService - - an object on which classes RPC methods are looked upremoteInterface - - an interface on which RPC methods are looked upin - - inputstream to listen for incoming messagesout - - outputstream to send outgoing messagesexecutorService - - the executor service used to start threadswrapper - - a function for plugging in additional message consumerspublic static <T> org.eclipse.lsp4j.jsonrpc.Launcher<T> createIoLauncher(java.lang.Object localService,
java.lang.Class<T> remoteInterface,
java.io.InputStream in,
java.io.OutputStream out,
java.util.concurrent.ExecutorService executorService,
java.util.function.Function<org.eclipse.lsp4j.jsonrpc.MessageConsumer,org.eclipse.lsp4j.jsonrpc.MessageConsumer> wrapper,
java.util.function.Consumer<com.google.gson.GsonBuilder> configureGson)
configureGson function can be used
to register additional type adapters in the GsonBuilder in order to
support protocol classes that cannot be handled by Gson's reflective
capabilities.localService - - an object on which classes RPC methods are looked upremoteInterface - - an interface on which RPC methods are looked upin - - inputstream to listen for incoming messagesout - - outputstream to send outgoing messagesexecutorService - - the executor service used to start threadswrapper - - a function for plugging in additional message consumersconfigureGson - - a function for Gson configuration