public static interface Function.Factory
Function
instances. The Function.getName()
must match functionName
and Function.evaluate(Object...)
must be able to operate on
argumentTypes
.
A sample implementation of this interface is show in CalcSomethingFactory.java which creates functions that can operate over a variable number (but at least two) of numeric arguments. This function factory can be integrated into ADAPA by using a Spring configuration file as described in applicationContext.xml.
Modifier and Type | Method and Description |
---|---|
Function<?> |
createFunction(String functionName,
Class<?>... argumentTypes)
Creates a
Function by matching the function name and argument types with a function implementation. |
Function<?> createFunction(String functionName, Class<?>... argumentTypes)
Function
by matching the function name and argument types with a function implementation.functionName
- the name of functionargumentTypes
- the types of argumentsFunction
corresponding to the provided function name or null
if
no matching function can be foundCopyright © 2005–2016 Zementis, Inc.. All rights reserved.