Interface SimpleLanguageFunctionFactory
public interface SimpleLanguageFunctionFactory
A factory for extending the simple language with functions from external components.
This requires to have the external component JAR on the classpath.
- Since:
- 4.10
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringcreateCode(CamelContext camelContext, String function, int index) Deprecated.will be removed along with csimple@Nullable ExpressioncreateFunction(CamelContext camelContext, String function, int index) Creates theExpressionthat performs the function.
-
Field Details
-
FACTORY
-
-
Method Details
-
createFunction
Creates theExpressionthat performs the function.- Parameters:
camelContext- the camel contextfunction- the functionindex- index of the function in the literal input- Returns:
- the created function as an expression, or null if not supported by this factory.
-
createCode
@Deprecated(since="4.21") default @Nullable String createCode(CamelContext camelContext, String function, int index) Deprecated.will be removed along with csimpleCreates the Java source code that performs the function (for csimple).- Parameters:
camelContext- the camel contextfunction- the functionindex- index of the function in the literal input- Returns:
- the source code or null if not supported by this factory.
-