@Api public interface FunctionRegistry
| Modifier and Type | Method and Description | 
|---|---|
| Function | getFunction(String name)Returns registered function with given name. | 
| List<Function> | getFunctions()Returns all registered functions. | 
| boolean | isRegistered(String name)Returns  trueif function with given name is available. | 
| void | registerFunction(Function function)Registers given function. | 
| com.google.common.collect.Multimap<Class<?>,Function> | registerFunctions(ComponentDiscovery strategy,
                 InstanceFactory instanceFactory)Registers all functions discovered using given strategy. | 
| void | unregisterFunction(Function function)Removes given function from registry. | 
void registerFunction(Function function) throws FunctionAlreadyRegisteredException, InvalidFunctionException
function - function instanceFunctionAlreadyRegisteredExceptionInvalidFunctionExceptionvoid unregisterFunction(Function function)
function - function instancecom.google.common.collect.Multimap<Class<?>,Function> registerFunctions(ComponentDiscovery strategy, InstanceFactory instanceFactory)
This operation is atomic. It will either register every discovered function or none when unexpected error occurs.
strategy - discovery strategyinstanceFactory - Instance factory that should me used to create components instancesList<Function> getFunctions()
Function getFunction(String name) throws FunctionNotFoundException
FunctionNotFoundException - function not foundboolean isRegistered(String name)
true if function with given name is available.name - function nametrue if function is registeredCopyright © 2025 Suncode. All rights reserved.