public interface LocalFunctionRegistry
A registry of defined FunctionBean instances containing within the current running application.
This interface is designed to allow the location and interaction with non-remote functions
| Modifier and Type | Field and Description | 
|---|---|
static String | 
FUNCTION_CHARSET
The name of the default function name. 
 | 
static String | 
FUNCTION_NAME
The name of the default function name. 
 | 
static String | 
FUNCTION_PREFIX
Prefix used to identify function names. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<T,R> Optional<? extends ExecutableMethod<T,R>> | 
find(String name)
Find the first available registered function. 
 | 
<T,U,R> Optional<ExecutableMethod<BiFunction<T,U,R>,R>> | 
findBiFunction(String name)
Find a  
BiFunction for the given name. | 
<T> Optional<ExecutableMethod<Consumer<T>,Void>> | 
findConsumer(String name)
Find a  
Consumer for the given name. | 
<T,R> Optional<? extends ExecutableMethod<T,R>> | 
findFirst()
Find the first available registered function. 
 | 
<T,R> Optional<ExecutableMethod<Function<T,R>,R>> | 
findFunction(String name)
Find a  
Function for the given name. | 
<T> Optional<ExecutableMethod<Supplier<T>,T>> | 
findSupplier(String name)
Find a  
Supplier for the given name. | 
Map<String,URI> | 
getAvailableFunctions()
A map of available functions with the key being the function name and the value being the function URI. 
 | 
static final String FUNCTION_NAME
static final String FUNCTION_CHARSET
static final String FUNCTION_PREFIX
Map<String,URI> getAvailableFunctions()
<T,R> Optional<? extends ExecutableMethod<T,R>> findFirst()
T - The declaring typeR - The result of the method callExecutableMethod method representing the function<T,R> Optional<? extends ExecutableMethod<T,R>> find(String name)
T - The declaring typeR - The result of the method callname - the nameExecutableMethod method representing the function<T> Optional<ExecutableMethod<Supplier<T>,T>> findSupplier(String name)
Supplier for the given name.<T> Optional<ExecutableMethod<Consumer<T>,Void>> findConsumer(String name)
Consumer for the given name.<T,R> Optional<ExecutableMethod<Function<T,R>,R>> findFunction(String name)
Function for the given name.<T,U,R> Optional<ExecutableMethod<BiFunction<T,U,R>,R>> findBiFunction(String name)
BiFunction for the given name.T - The typeU - the type of the second argument to the functionR - The result of the method callname - The nameOptional of a BiFunction