Package org.apache.camel.support
Class SingleInputTypedLanguageSupport
java.lang.Object
org.apache.camel.support.LanguageSupport
org.apache.camel.support.TypedLanguageSupport
org.apache.camel.support.SingleInputTypedLanguageSupport
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.IsSingleton,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.Language
Base class for
Language implementations that support a result type and different sources of input data.-
Field Summary
Fields inherited from class org.apache.camel.support.LanguageSupport
RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ExpressioncreateExpression(String expression) org.apache.camel.ExpressioncreateExpression(String expression, Object[] properties) org.apache.camel.ExpressioncreateExpression(org.apache.camel.Expression source, String expression, Object[] properties) Creates an expression based on the input with properties.org.apache.camel.PredicatecreatePredicate(String expression) org.apache.camel.PredicatecreatePredicate(String expression, Object[] properties) org.apache.camel.PredicatecreatePredicate(org.apache.camel.Expression source, String expression, Object[] properties) Creates a predicate based on the input with properties.protected booleanWhether using result type is supportedMethods inherited from class org.apache.camel.support.LanguageSupport
getCamelContext, hasSimpleFunction, isDynamicResource, isSingleton, isStaticResource, loadResource, property, setCamelContext
-
Constructor Details
-
SingleInputTypedLanguageSupport
public SingleInputTypedLanguageSupport()
-
-
Method Details
-
createPredicate
-
createExpression
-
supportResultType
protected boolean supportResultType()Whether using result type is supported -
createExpression
- Specified by:
createExpressionin interfaceorg.apache.camel.spi.Language- Overrides:
createExpressionin classTypedLanguageSupport
-
createPredicate
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.Expression source, String expression, Object[] properties) Creates an expression based on the input with properties.- Parameters:
source- the expression allowing to retrieve the input data of the main expression.expression- the main expression to evaluate.properties- configuration properties (optimized as object array with hardcoded positions for properties)- Returns:
- the created expression
-
createPredicate
public org.apache.camel.Predicate createPredicate(org.apache.camel.Expression source, String expression, Object[] properties) Creates a predicate based on the input with properties.- Parameters:
source- the expression allowing to retrieve the input data of the main expression.expression- the main expression to evaluate as predicate.properties- configuration properties (optimized as object array with hardcoded positions for properties)- Returns:
- the created predicate
-