Example usage for org.springframework.integration.groovy GroovyScriptExecutingMessageProcessor GroovyScriptExecutingMessageProcessor

List of usage examples for org.springframework.integration.groovy GroovyScriptExecutingMessageProcessor GroovyScriptExecutingMessageProcessor

Introduction

In this page you can find the example usage for org.springframework.integration.groovy GroovyScriptExecutingMessageProcessor GroovyScriptExecutingMessageProcessor.

Prototype

public GroovyScriptExecutingMessageProcessor(ScriptSource scriptSource) 

Source Link

Document

Create a processor for the given ScriptSource that will use a DefaultScriptVariableGenerator.

Usage

From source file:com.acmemotors.filter.DataFilterTests.java

@Before
public void setUp() {
    processor = new GroovyScriptExecutingMessageProcessor(
            new ResourceScriptSource(new ClassPathResource("DataFilter.groovy")));
}