Interface ExpressionFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExpressionFactory
Deferred factory for creating an Expression within a CamelContext.

Being a FunctionalInterface, implementations are typically supplied as lambdas or method references wherever a context-aware expression must be constructed lazily, for example when wiring EIP definitions during route startup. The factory receives the context so it can resolve language services, registries, or configuration values needed to build the expression.

Since:
3.0
See Also:
  • Method Details

    • createExpression

      Expression createExpression(CamelContext camelContext)
      Creates an expression
      Parameters:
      camelContext - the camel context
      Returns:
      the created expression.