public interface VirtDataFunctionLibrary extends Named
| Modifier and Type | Method and Description |
|---|---|
default <T> Optional<DataMapper<T>> |
getDataMapper(String spec)
Provide a way to promote a long function into a data mapper.
|
List<String> |
getDataMapperNames()
Get a list of all data mappers supported by this library.
|
default <T> List<DataMapper<T>> |
getDataMappers(String spec) |
List<ResolvedFunction> |
resolveFunctions(Class<?> returnType,
Class<?> inputType,
String functionName,
Object... parameters)
Given a signature for a unary function which takes an input
and output type, a function name, and constructor arguments,
return a list of instances from all implementations that have
the same name as the function name,
which have a matching constructor signature, and which also
have a functional method which can be used with the provided
input and output types.
|
default List<ResolvedFunction> |
resolveFunctions(String spec) |
List<ResolvedFunction> resolveFunctions(Class<?> returnType, Class<?> inputType, String functionName, Object... parameters)
returnType - The class which the apply method should return,
or null if unspecifiedinputType - The class which the unary apply method should take as an
argument, or null if unspecifiedfunctionName - The name of the implementation to matchparameters - A list of arguments which will be used to instantiate
any matching implementationsList<String> getDataMapperNames()
default List<ResolvedFunction> resolveFunctions(String spec)
default <T> List<DataMapper<T>> getDataMappers(String spec)
default <T> Optional<DataMapper<T>> getDataMapper(String spec)
spec - a binding specCopyright © 2018. All rights reserved.