THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
... from('direct:test') .transform(new Expression() { @Override public Object evaluate(Exchange e) { return new StringBuffer(e.getIn().getBody().toString()).reverse().toString(); } }); } ... |
Using Closures
Using Groovy XML processing
Custom DSL extensions
Developing with the Groovy DSL
...
Code Block | ||||
---|---|---|---|---|
| ||||
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <additionalProjectnatures> <projectnature>org.eclipse.jdt.groovy.core.groovyNature</projectnature> </additionalProjectnatures> <classpathContainers> <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer> <classpathContainer>GROOVY_DSL_SUPPORT</classpathContainer> </classpathContainers> </configuration> </plugin> |