Class MvelLanguage

java.lang.Object
org.apache.camel.support.LanguageSupport
org.apache.camel.support.TypedLanguageSupport
org.apache.camel.language.mvel.MvelLanguage
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.IsSingleton, org.apache.camel.spi.Language, org.apache.camel.spi.ScriptingLanguage

@Language("mvel") public class MvelLanguage extends org.apache.camel.support.TypedLanguageSupport implements org.apache.camel.spi.ScriptingLanguage
An MVEL Language plugin
  • Field Summary

    Fields inherited from class org.apache.camel.support.LanguageSupport

    RESOURCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.Expression
     
    org.apache.camel.Predicate
    createPredicate(String expression)
     
    <T> T
    evaluate(String script, Map<String,Object> bindings, Class<T> resultType)
     

    Methods inherited from class org.apache.camel.support.TypedLanguageSupport

    createExpression, getResultType, setResultType

    Methods inherited from class org.apache.camel.support.LanguageSupport

    getCamelContext, hasSimpleFunction, isDynamicResource, isSingleton, isStaticResource, loadResource, property, setCamelContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.spi.Language

    createPredicate
  • Constructor Details

    • MvelLanguage

      public MvelLanguage()
  • Method Details

    • createPredicate

      public org.apache.camel.Predicate createPredicate(String expression)
      Specified by:
      createPredicate in interface org.apache.camel.spi.Language
    • createExpression

      public org.apache.camel.Expression createExpression(String expression)
      Specified by:
      createExpression in interface org.apache.camel.spi.Language
    • evaluate

      public <T> T evaluate(String script, Map<String,Object> bindings, Class<T> resultType)
      Specified by:
      evaluate in interface org.apache.camel.spi.ScriptingLanguage