@Bean public TaskExpansionStrategy taskConfigurationPropertyValueHintExpansionStrategy() { return new ConfigurationPropertyValueHintTaskExpansionStrategy(appRegistry, metadataResolver); }
@Override public boolean addProposals(String text, TaskDefinition parseResult, int detailLevel, List<CompletionProposal> collector) { Set<String> propertyNames = new HashSet<>(parseResult.getProperties().keySet()); propertyNames.removeAll(CompletionUtils.IMPLICIT_TASK_PARAMETER_NAMES); if (text.endsWith(" ") || propertyNames.isEmpty()) { return false; } String propertyName = recoverPropertyName(text); String alreadyTyped = parseResult.getProperties().get(propertyName); AppRegistration lastAppRegistration = this.collectorSupport.findAppRegistration(parseResult.getRegisteredAppName(), ApplicationType.task); if (lastAppRegistration != null) { return this.collectorSupport.addAlreadyTypedValueHintsProposals(text, lastAppRegistration, collector, propertyName, valueHintProviders, alreadyTyped); } return false; }