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.
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 Summary
Modifier and TypeMethodDescriptioncreateExpression(CamelContext camelContext) Creates an expression
-
Method Details
-
createExpression
Creates an expression- Parameters:
camelContext- the camel context- Returns:
- the created expression.
-