org.springframework.integration.groovy
Class GroovyScriptExecutingMessageProcessor
java.lang.Object
org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<java.lang.Object>
org.springframework.integration.groovy.GroovyScriptExecutingMessageProcessor
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.integration.handler.MessageProcessor<java.lang.Object>
public class GroovyScriptExecutingMessageProcessor
- extends org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<java.lang.Object>
- implements org.springframework.beans.factory.InitializingBean
- Since:
- 2.0
|
Constructor Summary |
GroovyScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource)
Create a processor for the given ScriptSource that will use a
DefaultScriptVariableGenerator. |
GroovyScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
org.springframework.integration.scripting.ScriptVariableGenerator scriptVariableGenerator)
Create a processor for the given ScriptSource that will use the provided
ScriptVariableGenerator. |
|
Method Summary |
void |
afterPropertiesSet()
|
protected java.lang.Object |
executeScript(org.springframework.scripting.ScriptSource scriptSource,
java.util.Map<java.lang.String,java.lang.Object> variables)
|
protected org.springframework.scripting.ScriptSource |
getScriptSource(org.springframework.integration.Message<?> message)
|
void |
setCustomizer(org.springframework.scripting.groovy.GroovyObjectCustomizer customizer)
Sets a GroovyObjectCustomizer for this processor. |
| Methods inherited from class org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor |
getBeanClassLoader, getBeanFactory, processMessage, setBeanClassLoader, setBeanFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyScriptExecutingMessageProcessor
public GroovyScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource)
- Create a processor for the given
ScriptSource that will use a
DefaultScriptVariableGenerator.
GroovyScriptExecutingMessageProcessor
public GroovyScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
org.springframework.integration.scripting.ScriptVariableGenerator scriptVariableGenerator)
- Create a processor for the given
ScriptSource that will use the provided
ScriptVariableGenerator.
setCustomizer
public void setCustomizer(org.springframework.scripting.groovy.GroovyObjectCustomizer customizer)
- Sets a
GroovyObjectCustomizer for this processor.
getScriptSource
protected org.springframework.scripting.ScriptSource getScriptSource(org.springframework.integration.Message<?> message)
- Specified by:
getScriptSource in class org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<java.lang.Object>
executeScript
protected java.lang.Object executeScript(org.springframework.scripting.ScriptSource scriptSource,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws java.lang.Exception
- Specified by:
executeScript in class org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<java.lang.Object>
- Throws:
java.lang.Exception
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception