Class ConstantExpressionAdapter

All Implemented Interfaces:
org.apache.camel.Expression, org.apache.camel.Predicate, org.apache.camel.StaticExpression

public abstract class ConstantExpressionAdapter extends ExpressionAdapter implements org.apache.camel.StaticExpression
A helper class for developers wishing to implement an Expression using Java code with a minimum amount of code to write so that the developer only needs to implement one of the ExpressionAdapter.evaluate(Exchange, Class) or ExpressionSupport.evaluate(Exchange) methods.
  • Constructor Details

    • ConstantExpressionAdapter

      public ConstantExpressionAdapter()
  • Method Details

    • setValue

      public void setValue(Object value)
      Specified by:
      setValue in interface org.apache.camel.StaticExpression
    • getValue

      public Object getValue()
      Specified by:
      getValue in interface org.apache.camel.StaticExpression