Package org.apache.camel.language.groovy
Interface GroovyShellFactory
-
public interface GroovyShellFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description groovy.lang.GroovyShell
createGroovyShell(org.apache.camel.Exchange exchange)
default String
getFileName(org.apache.camel.Exchange exchange)
default Map<String,Object>
getVariables(org.apache.camel.Exchange exchange)
This method provide a way to define some global variables that will be applied to all the groovy script context.
-
-
-
Method Detail
-
createGroovyShell
groovy.lang.GroovyShell createGroovyShell(org.apache.camel.Exchange exchange)
-
getFileName
default String getFileName(org.apache.camel.Exchange exchange)
-
getVariables
default Map<String,Object> getVariables(org.apache.camel.Exchange exchange)
This method provide a way to define some global variables that will be applied to all the groovy script context.- Parameters:
exchange
- the camel exchange in process.- Returns:
- the global variables that will be applied to all the groovy script context.
-
-