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.HasCamelContext
,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 adapt
Expression
as a Predicate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.CamelContext
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
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
ExpressionToPredicateAdapter
public ExpressionToPredicateAdapter(org.apache.camel.Expression expression)
-
-
Method Details
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matches
in interfaceorg.apache.camel.Predicate
-
toString
-
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.spi.HasCamelContext
-
getPropertyConfigurer
- Specified by:
getPropertyConfigurer
in interfaceorg.apache.camel.spi.PropertyConfigurerAware
-