Class PipeIntoOtherAppsExpansionStrategy
java.lang.Object
org.springframework.cloud.dataflow.completion.PipeIntoOtherAppsExpansionStrategy
- All Implemented Interfaces:
ExpansionStrategy
Continues a well-formed stream definition by adding a pipe symbol and another app,
provided that the stream definition hasn't reached its end yet.
- Author:
- Eric Bottard, Mark Fisher
-
Constructor Summary
ConstructorDescriptionPipeIntoOtherAppsExpansionStrategy
(AppRegistryService appRegistry, StreamDefinitionService streamDefinitionService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addProposals
(String text, StreamDefinition streamDefinition, int detailLevel, List<CompletionProposal> collector) For a given stream DSL text andStreamDefinition
, GenerateCompletionProposal
s that apply (if any) and add them to the providedcollector
list Returntrue
if no other strategies should be applied for the stream DSL text (this strategy make take the liberty to erase already collected proposals)
-
Constructor Details
-
PipeIntoOtherAppsExpansionStrategy
public PipeIntoOtherAppsExpansionStrategy(AppRegistryService appRegistry, StreamDefinitionService streamDefinitionService)
-
-
Method Details
-
addProposals
public boolean addProposals(String text, StreamDefinition streamDefinition, int detailLevel, List<CompletionProposal> collector) Description copied from interface:ExpansionStrategy
For a given stream DSL text andStreamDefinition
,- Generate
CompletionProposal
s that apply (if any) and add them to the providedcollector
list - Return
true
if no other strategies should be applied for the stream DSL text (this strategy make take the liberty to erase already collected proposals)
- Specified by:
addProposals
in interfaceExpansionStrategy
- Parameters:
text
- DSL text for the streamstreamDefinition
- stream definitiondetailLevel
- integer representing the amount of detail to include in the generatedCompletionProposal
s (higher values mean more details. typical range is [1..5])collector
- list ofCompletionProposal
s to add/remove from if this strategy applies- Returns:
true
if no other strategies should be applied for the stream DSL text
- Generate
-