Package org.apache.camel.spi
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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateCode
(CamelContext camelContext, String function, int index) Creates the Java source code that performs the function (for csimple).createFunction
(CamelContext camelContext, String function, int index) Creates theExpression
that performs the function.
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
createFunction
Creates theExpression
that 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
Creates 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.
-