@Bean public ConfigurationPropertyNameAfterDashDashTaskRecoveryStrategy configurationPropertyNameAfterDashDashTaskRecoveryStrategy() { return new ConfigurationPropertyNameAfterDashDashTaskRecoveryStrategy(appRegistry, metadataResolver); }
@Override public void addProposals(String dsl, ParseException exception, int detailLevel, List<CompletionProposal> proposals) { // Pretend there was an additional dash and invoke the dedicated strategy for that // case String withDashDash = dsl + "-"; try { new TaskDefinition("__dummy", withDashDash); } catch (CheckPointedParseException recoverable) { Assert.isTrue(recoveryAfterDashDash.shouldTrigger(withDashDash, recoverable), "did not trigger after dash-dash"); recoveryAfterDashDash.addProposals(withDashDash, recoverable, detailLevel, proposals); } }