GH-1309: added support for conditional on missing bean annotation

This commit is contained in:
Martin Lippert
2024-10-07 21:31:51 +02:00
parent be00e4d3f8
commit 85c5eaafb1

View File

@@ -131,6 +131,11 @@ public class BootJavaCompletionEngineConfigurer {
providers.put(Annotations.QUALIFIER, new AnnotationAttributeCompletionProcessor(javaProjectFinder, Map.of("value", new QualifierCompletionProvider(springIndex))));
providers.put(Annotations.PROFILE, new AnnotationAttributeCompletionProcessor(javaProjectFinder, Map.of("value", new ProfileCompletionProvider(springIndex))));
providers.put(Annotations.CONDITIONAL_ON_MISSING_BEAN, new AnnotationAttributeCompletionProcessor(javaProjectFinder, Map.of(
"name", new BeanNamesCompletionProcessor(springIndex),
"type", new BeanTypesCompletionProcessor(springIndex),
"ignoredType", new BeanTypesCompletionProcessor(springIndex))));
providers.put(Annotations.RESOURCE_JAVAX, new AnnotationAttributeCompletionProcessor(javaProjectFinder, Map.of("name", new ResourceCompletionProvider(springIndex))));
providers.put(Annotations.RESOURCE_JAKARTA, new AnnotationAttributeCompletionProcessor(javaProjectFinder, Map.of("name", new ResourceCompletionProvider(springIndex))));