Class SimpleBuilder

java.lang.Object
org.apache.camel.builder.SimpleBuilder
All Implemented Interfaces:
org.apache.camel.Expression, org.apache.camel.Predicate, org.apache.camel.spi.ExpressionResultTypeAware

@Deprecated public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware
Deprecated.
Creates a 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.

  • Constructor Details

    • SimpleBuilder

      public SimpleBuilder(String text)
      Deprecated.
  • Method Details

    • simple

      public static SimpleBuilder simple(String text)
      Deprecated.
    • simple

      public static SimpleBuilder simple(String text, Class<?> resultType)
      Deprecated.
    • simpleF

      public static SimpleBuilder simpleF(String formatText, Object... values)
      Deprecated.
    • simpleF

      public static SimpleBuilder simpleF(String formatText, Class<?> resultType, Object... values)
      Deprecated.
    • getText

      public String getText()
      Deprecated.
    • getExpressionText

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

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

      public void setResultType(Class<?> resultType)
      Deprecated.
    • resultType

      public SimpleBuilder resultType(Class<?> resultType)
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • evaluate

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

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

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