spring-boot/spring-bootstrap-cli/samples/integration.groovy

16 lines
293 B
Groovy
Raw Normal View History

package org.test
@Component
class SpringIntegrationExample implements CommandLineRunner {
def builder = new IntegrationBuilder()
def flow = builder.messageFlow {
transform {"Hello, $it!"}
}
@Override
public void run(String... args) {
print flow.sendAndReceive("World")
}
}