Class GroovyCommandMessageProcessor
java.lang.Object
org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<Object>
org.springframework.integration.groovy.GroovyCommandMessageProcessor
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,MessageProcessor<Object>,IntegrationPattern
@Deprecated(since="6.4",
forRemoval=true)
public class GroovyCommandMessageProcessor
extends AbstractScriptExecutingMessageProcessor<Object>
implements IntegrationPattern
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 2.0
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky, Artem Bilan, Stefan Reuter, Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use theDefaultScriptVariableGenerator.GroovyCommandMessageProcessor(groovy.lang.Binding binding) Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use theDefaultScriptVariableGeneratorand providedBinding.GroovyCommandMessageProcessor(groovy.lang.Binding binding, ScriptVariableGenerator scriptVariableGenerator) Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use the providedScriptVariableGeneratorand Binding.GroovyCommandMessageProcessor(ScriptVariableGenerator scriptVariableGenerator) Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use the providedScriptVariableGenerator. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectexecuteScript(ScriptSource scriptSource, Map<String, Object> variables) Deprecated, for removal: This API element is subject to removal in a future version.Subclasses must implement this method.protected StringgenerateScriptName(Message<?> message) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return a pattern type this component implements.protected ScriptSourcegetScriptSource(Message<?> message) Deprecated, for removal: This API element is subject to removal in a future version.Subclasses must implement this method to create a script source, optionally using the message to locate or create the script.voidsetCustomizer(GroovyObjectCustomizer customizer) Deprecated, for removal: This API element is subject to removal in a future version.Sets aGroovyObjectCustomizerfor this processor.Methods inherited from class org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor
getBeanClassLoader, getBeanFactory, getScriptVariableGenerator, processMessage, setBeanClassLoader, setBeanFactory
-
Constructor Details
-
GroovyCommandMessageProcessor
public GroovyCommandMessageProcessor()Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use theDefaultScriptVariableGenerator. -
GroovyCommandMessageProcessor
Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use the providedScriptVariableGenerator.- Parameters:
scriptVariableGenerator- The variable generator.
-
GroovyCommandMessageProcessor
public GroovyCommandMessageProcessor(groovy.lang.Binding binding) Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use theDefaultScriptVariableGeneratorand providedBinding. Provided 'binding' will be used in theBindingOverwriteGroovyObjectCustomizerDecoratorto overwrite original Groovy Script 'binding'.- Parameters:
binding- The binding.
-
GroovyCommandMessageProcessor
public GroovyCommandMessageProcessor(groovy.lang.Binding binding, ScriptVariableGenerator scriptVariableGenerator) Deprecated, for removal: This API element is subject to removal in a future version.Creates aGroovyCommandMessageProcessorthat will use the providedScriptVariableGeneratorand Binding. Provided 'binding' will be used in theBindingOverwriteGroovyObjectCustomizerDecoratorto overwrite original Groovy Script 'binding'.- Parameters:
binding- The binding.scriptVariableGenerator- The variable generator.
-
-
Method Details
-
setCustomizer
Deprecated, for removal: This API element is subject to removal in a future version.Sets aGroovyObjectCustomizerfor this processor.- Parameters:
customizer- The customizer.
-
getIntegrationPatternType
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IntegrationPatternReturn a pattern type this component implements.- Specified by:
getIntegrationPatternTypein interfaceIntegrationPattern- Returns:
- the
IntegrationPatternTypethis component implements.
-
getScriptSource
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractScriptExecutingMessageProcessorSubclasses must implement this method to create a script source, optionally using the message to locate or create the script.- Specified by:
getScriptSourcein classAbstractScriptExecutingMessageProcessor<Object>- Parameters:
message- the message being processed- Returns:
- a ScriptSource to use to create a script
-
executeScript
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractScriptExecutingMessageProcessorSubclasses must implement this method. In doing so, the execution context for the script should be populated with the provided script variables.- Specified by:
executeScriptin classAbstractScriptExecutingMessageProcessor<Object>- Parameters:
scriptSource- The script source.variables- The variables.- Returns:
- The result of the execution.
-
generateScriptName
Deprecated, for removal: This API element is subject to removal in a future version.
-
ControlBusMessageProcessor