Search in sources :

Example 1 with ComponentSymbolProvider

use of org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider in project sts4 by spring-projects.

the class SpringIndexerBeansTest method setup.

@Before
public void setup() throws Exception {
    symbolProviders = new AnnotationHierarchyAwareLookup<>();
    symbolProviders.put(Annotations.BEAN, new BeansSymbolProvider());
    symbolProviders.put(Annotations.COMPONENT, new ComponentSymbolProvider());
    harness = BootJavaLanguageServerHarness.builder().build();
    harness.intialize(new File(ProjectsHarness.class.getResource("/test-projects/test-annotation-indexing-beans/").toURI()));
}
Also used : ComponentSymbolProvider(org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider) ProjectsHarness(org.springframework.ide.vscode.project.harness.ProjectsHarness) File(java.io.File) BeansSymbolProvider(org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider) Before(org.junit.Before)

Example 2 with ComponentSymbolProvider

use of org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider in project sts4 by spring-projects.

the class SpringIndexerFunctionBeansTest method setup.

@Before
public void setup() throws Exception {
    symbolProviders = new AnnotationHierarchyAwareLookup<>();
    symbolProviders.put(Annotations.BEAN, new BeansSymbolProvider());
    symbolProviders.put(Annotations.COMPONENT, new ComponentSymbolProvider());
    harness = BootJavaLanguageServerHarness.builder().build();
    harness.intialize(new File(ProjectsHarness.class.getResource("/test-projects/test-annotation-indexing-beans/").toURI()));
}
Also used : ComponentSymbolProvider(org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider) ProjectsHarness(org.springframework.ide.vscode.project.harness.ProjectsHarness) File(java.io.File) BeansSymbolProvider(org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider) Before(org.junit.Before)

Example 3 with ComponentSymbolProvider

use of org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider in project sts4 by spring-projects.

the class BootJavaLanguageServerComponents method createAnnotationIndexer.

protected SpringIndexer createAnnotationIndexer(SimpleLanguageServer server, BootLanguageServerParams params) {
    AnnotationHierarchyAwareLookup<SymbolProvider> providers = new AnnotationHierarchyAwareLookup<>();
    providers.put(Annotations.SPRING_REQUEST_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.SPRING_GET_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.SPRING_POST_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.SPRING_PUT_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.SPRING_DELETE_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.SPRING_PATCH_MAPPING, new RequestMappingSymbolProvider());
    providers.put(Annotations.BEAN, new BeansSymbolProvider());
    providers.put(Annotations.COMPONENT, new ComponentSymbolProvider());
    providers.put(Annotations.REPOSITORY, new DataRepositorySymbolProvider());
    providers.put("", new WebfluxRouterSymbolProvider());
    return new SpringIndexer(server, params, providers);
}
Also used : WebfluxRouterSymbolProvider(org.springframework.ide.vscode.boot.java.requestmapping.WebfluxRouterSymbolProvider) SymbolProvider(org.springframework.ide.vscode.boot.java.handlers.SymbolProvider) LiveAppURLSymbolProvider(org.springframework.ide.vscode.boot.java.requestmapping.LiveAppURLSymbolProvider) WebfluxRouterSymbolProvider(org.springframework.ide.vscode.boot.java.requestmapping.WebfluxRouterSymbolProvider) BeansSymbolProvider(org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider) RequestMappingSymbolProvider(org.springframework.ide.vscode.boot.java.requestmapping.RequestMappingSymbolProvider) ComponentSymbolProvider(org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider) DataRepositorySymbolProvider(org.springframework.ide.vscode.boot.java.data.DataRepositorySymbolProvider) RequestMappingSymbolProvider(org.springframework.ide.vscode.boot.java.requestmapping.RequestMappingSymbolProvider) AnnotationHierarchyAwareLookup(org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchyAwareLookup) ComponentSymbolProvider(org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider) SpringIndexer(org.springframework.ide.vscode.boot.java.utils.SpringIndexer) DataRepositorySymbolProvider(org.springframework.ide.vscode.boot.java.data.DataRepositorySymbolProvider) BeansSymbolProvider(org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider)

Aggregations

BeansSymbolProvider (org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider)3 ComponentSymbolProvider (org.springframework.ide.vscode.boot.java.beans.ComponentSymbolProvider)3 File (java.io.File)2 Before (org.junit.Before)2 ProjectsHarness (org.springframework.ide.vscode.project.harness.ProjectsHarness)2 AnnotationHierarchyAwareLookup (org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchyAwareLookup)1 DataRepositorySymbolProvider (org.springframework.ide.vscode.boot.java.data.DataRepositorySymbolProvider)1 SymbolProvider (org.springframework.ide.vscode.boot.java.handlers.SymbolProvider)1 LiveAppURLSymbolProvider (org.springframework.ide.vscode.boot.java.requestmapping.LiveAppURLSymbolProvider)1 RequestMappingSymbolProvider (org.springframework.ide.vscode.boot.java.requestmapping.RequestMappingSymbolProvider)1 WebfluxRouterSymbolProvider (org.springframework.ide.vscode.boot.java.requestmapping.WebfluxRouterSymbolProvider)1 SpringIndexer (org.springframework.ide.vscode.boot.java.utils.SpringIndexer)1