Interface GroovyShellFactory


public interface GroovyShellFactory
  • Method Summary

    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 Details

    • 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.