Package org.apache.camel.support
Class ExpressionToPredicateAdapter
- java.lang.Object
-
- org.apache.camel.support.ExpressionToPredicateAdapter
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.Predicate
,org.apache.camel.spi.PropertyConfigurerAware
public final class ExpressionToPredicateAdapter extends Object implements org.apache.camel.Predicate, org.apache.camel.CamelContextAware, org.apache.camel.spi.PropertyConfigurerAware
To adaptExpression
as aPredicate
-
-
Constructor Summary
Constructors Constructor Description ExpressionToPredicateAdapter(org.apache.camel.Expression expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.CamelContext
getCamelContext()
org.apache.camel.spi.PropertyConfigurer
getPropertyConfigurer(Object instance)
void
init(org.apache.camel.CamelContext context)
boolean
matches(org.apache.camel.Exchange exchange)
void
setCamelContext(org.apache.camel.CamelContext camelContext)
static org.apache.camel.Predicate
toPredicate(org.apache.camel.Expression expression)
Converts the given expression into anPredicate
String
toString()
-
-
-
Method Detail
-
matches
public boolean matches(org.apache.camel.Exchange exchange)
- Specified by:
matches
in interfaceorg.apache.camel.Predicate
-
toPredicate
public static org.apache.camel.Predicate toPredicate(org.apache.camel.Expression expression)
Converts the given expression into anPredicate
-
init
public void init(org.apache.camel.CamelContext context)
- Specified by:
init
in interfaceorg.apache.camel.Predicate
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
getPropertyConfigurer
public org.apache.camel.spi.PropertyConfigurer getPropertyConfigurer(Object instance)
- Specified by:
getPropertyConfigurer
in interfaceorg.apache.camel.spi.PropertyConfigurerAware
-
-