Class SimpleBuilder

  • All Implemented Interfaces:
    org.apache.camel.Expression, org.apache.camel.Predicate, org.apache.camel.spi.ExpressionResultTypeAware, org.apache.camel.spi.PropertyConfigurer

    public class SimpleBuilder
    extends Object
    implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware, org.apache.camel.spi.PropertyConfigurer
    Creates an org.apache.camel.language.simple.Simple language builder.

    This builder is available in the Java DSL from the RouteBuilder which means that using simple language for Expressions or Predicates is very easy with the help of this builder.

    • Method Detail

      • configure

        public boolean configure​(org.apache.camel.CamelContext camelContext,
                                 Object target,
                                 String name,
                                 Object value,
                                 boolean ignoreCase)
        Specified by:
        configure in interface org.apache.camel.spi.PropertyConfigurer
      • getExpressionText

        public String getExpressionText()
        Specified by:
        getExpressionText in interface org.apache.camel.spi.ExpressionResultTypeAware
      • getResultType

        public Class<?> getResultType()
        Specified by:
        getResultType in interface org.apache.camel.spi.ExpressionResultTypeAware
      • init

        public void init​(org.apache.camel.CamelContext context)
        Specified by:
        init in interface org.apache.camel.Expression
        Specified by:
        init in interface org.apache.camel.Predicate
      • matches

        public boolean matches​(org.apache.camel.Exchange exchange)
        Specified by:
        matches in interface org.apache.camel.Predicate
      • evaluate

        public <T> T evaluate​(org.apache.camel.Exchange exchange,
                              Class<T> type)
        Specified by:
        evaluate in interface org.apache.camel.Expression
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(org.apache.camel.CamelContext context)
      • createExpression

        public org.apache.camel.Expression createExpression​(org.apache.camel.CamelContext context)