public final class ExpressionToPredicateAdapter extends Object implements Predicate, CamelContextAware
Expression
as a Predicate
Constructor and Description |
---|
ExpressionToPredicateAdapter(Expression expression) |
Modifier and Type | Method and Description |
---|---|
CamelContext |
getCamelContext()
Get the
CamelContext |
boolean |
matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this
exchange matches the predicate
|
void |
setCamelContext(CamelContext camelContext)
Injects the
CamelContext |
static Predicate |
toPredicate(Expression expression)
Converts the given expression into an
Predicate |
String |
toString() |
public ExpressionToPredicateAdapter(Expression expression)
public boolean matches(Exchange exchange)
Predicate
public static Predicate toPredicate(Expression expression)
Predicate
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
Apache Camel