public class TapOnDestinationRecoveryStrategy extends Object implements RecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.ParseException>
StreamDefinitionRepository
.Constructor and Description |
---|
TapOnDestinationRecoveryStrategy(StreamDefinitionRepository streamDefinitionRepository,
StreamDefinitionService streamDefinitionService) |
Modifier and Type | Method and Description |
---|---|
void |
addProposals(String dsl,
org.springframework.cloud.dataflow.core.dsl.ParseException exception,
int detailLevel,
List<CompletionProposal> collector)
Perform code completion by adding proposals to the
proposals list. |
boolean |
shouldTrigger(String dslStart,
Exception exception)
Whether this completion should be triggered.
|
public TapOnDestinationRecoveryStrategy(StreamDefinitionRepository streamDefinitionRepository, StreamDefinitionService streamDefinitionService)
public boolean shouldTrigger(String dslStart, Exception exception)
RecoveryStrategy
shouldTrigger
in interface RecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.ParseException>
dslStart
- the partial DSL textexception
- the exception thrown when parsing the DSL textpublic void addProposals(String dsl, org.springframework.cloud.dataflow.core.dsl.ParseException exception, int detailLevel, List<CompletionProposal> collector)
RecoveryStrategy
proposals
list.addProposals
in interface RecoveryStrategy<org.springframework.cloud.dataflow.core.dsl.ParseException>
dsl
- the partial DSL textexception
- the exception thrown when parsing the DSL textdetailLevel
- an integer describing the level of detail to include in
proposal, starting at 1. Higher values request more detail, with values typically
in the range [1..5]collector
- the list of completion proposals to show the userCopyright © 2024 Pivotal Software, Inc.. All rights reserved.