Package org.apache.camel.spi
Interface SimpleFunctionRegistry
- All Superinterfaces:
AutoCloseable,Service,StaticService
Registry for custom simple functions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(String name, Expression expression) Add a custom simple functionvoidaddFunction(SimpleFunction function) Add a custom simple functionintcoreSize()Number of core functionsintNumber of custom functions currently in useReturns a set with all the core/built-in function namesReturns a set with all the custom function names currently in usegetFunction(String name) Gets the function (will resolve custom functions from registry)voidremoveFunction(String name) Remove a custom simple function
-
Method Details
-
addFunction
Add a custom simple function- Parameters:
name- name of custom simple functionexpression- the expression to use as the function
-
addFunction
Add a custom simple function- Parameters:
function- the function to add
-
removeFunction
Remove a custom simple function- Parameters:
name- name of function
-
getFunction
Gets the function (will resolve custom functions from registry)- Parameters:
name- name of function- Returns:
- the function, or null if no function exists
-
getCustomFunctionNames
Returns a set with all the custom function names currently in use -
getCoreFunctionNames
Returns a set with all the core/built-in function names -
customSize
int customSize()Number of custom functions currently in use -
coreSize
int coreSize()Number of core functions
-