SpringModelService minor refactoring and flattening
This commit is contained in:
@@ -28,14 +28,14 @@ import org.springframework.ide.vscode.commons.protocol.java.JavaSearchParams;
|
||||
import org.springframework.ide.vscode.commons.protocol.java.JavaTypeHierarchyParams;
|
||||
import org.springframework.ide.vscode.commons.protocol.java.TypeData;
|
||||
import org.springframework.ide.vscode.commons.protocol.java.TypeDescriptorData;
|
||||
import org.springframework.ide.vscode.commons.protocol.spring.SpringModelLanguageClient;
|
||||
import org.springframework.ide.vscode.commons.protocol.spring.SpringIndexLanguageClient;
|
||||
|
||||
/**
|
||||
* Some 'custom' extensions to standard LSP {@link LanguageClient}.
|
||||
*
|
||||
* @author Kris De Volder
|
||||
*/
|
||||
public interface STS4LanguageClient extends LanguageClient, SpringModelLanguageClient {
|
||||
public interface STS4LanguageClient extends LanguageClient, SpringIndexLanguageClient {
|
||||
|
||||
@JsonNotification("sts/liveprocess/connected")
|
||||
void liveProcessConnected(LiveProcessSummary processKey);
|
||||
|
||||
@@ -10,15 +10,11 @@
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.commons.protocol.spring;
|
||||
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonDelegate;
|
||||
import org.eclipse.lsp4j.services.LanguageServer;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public interface SpringModelLanguageServer extends LanguageServer {
|
||||
|
||||
/**
|
||||
* Provides access to the spring model services.
|
||||
*/
|
||||
@JsonDelegate
|
||||
SpringModelService getSpringModelService();
|
||||
public interface SpringIndex {
|
||||
|
||||
CompletableFuture<List<Bean>> beans(BeansParams params);
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@ package org.springframework.ide.vscode.commons.protocol.spring;
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification;
|
||||
import org.eclipse.lsp4j.services.LanguageClient;
|
||||
|
||||
public interface SpringModelLanguageClient extends LanguageClient {
|
||||
public interface SpringIndexLanguageClient extends LanguageClient {
|
||||
|
||||
@JsonNotification("spring/index/updated")
|
||||
void indexUpdated();
|
||||
@@ -14,12 +14,11 @@ import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest;
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonSegment;
|
||||
import org.eclipse.lsp4j.services.LanguageServer;
|
||||
|
||||
@JsonSegment("spring/index")
|
||||
public interface SpringModelService {
|
||||
|
||||
@JsonRequest
|
||||
public interface SpringIndexLanguageServer extends LanguageServer {
|
||||
|
||||
@JsonRequest("spring/index/beans")
|
||||
default CompletableFuture<List<Bean>> beans(BeansParams params) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
Reference in New Issue
Block a user