@Bean public ConfigurationPropertyNameAfterDashDashRecoveryStrategy configurationPropertyNameAfterDashDashRecoveryStrategy() { return new ConfigurationPropertyNameAfterDashDashRecoveryStrategy(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 StreamDefinition("__dummy", withDashDash); } catch (CheckPointedParseException recoverable) { Assert.isTrue(recoveryAfterDashDash.shouldTrigger(withDashDash, recoverable), "did not tigger after dash-dash"); recoveryAfterDashDash.addProposals(withDashDash, recoverable, detailLevel, proposals); } }