public class FunctionFactory extends Object
Function objects. There are 6 static getFunctions
objects in this class, which correspond to 6 different kind of Function objects.
The function factory was more important in the 1.7 version of MMBase. Since MMBase 1.8 there are
FunctionProviders, so often, it is just as easy and straight forward to simply call the
getFunction method on the relevant FunctionProvider (like FunctionSet, Cloud,
Module, or Node) or to simply instantiate the Function object (e.g. BeanFunction)| Constructor and Description |
|---|
FunctionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Function<Object> |
getFunction(Class<?> claz,
String functionName)
Gets a function object for a Bean
|
static Function |
getFunction(Cloud cloud,
String setName,
String functionName)
Gets a function from a function set on a certain cloud
|
static Function<Object> |
getFunction(Method method,
String functionName)
Gets a function object for a certain Method
|
static Function |
getFunction(Module module,
String functionName)
Gets a function object for a Module
|
static Function |
getFunction(NodeManager nodeManager,
String functionName)
Gets a function object for a NodeManager
|
static Function |
getFunction(Node node,
String functionName)
Gets a function object for a Node.
|
static Function<?> |
getFunction(String setName,
String functionName)
Gets a function from a function set
|
public static Function<?> getFunction(String setName, String functionName)
public static Function getFunction(Cloud cloud, String setName, String functionName)
public static Function getFunction(Node node, String functionName)
public static Function getFunction(NodeManager nodeManager, String functionName)
public static Function getFunction(Module module, String functionName)
public static Function<Object> getFunction(Method method, String functionName)
public static Function<Object> getFunction(Class<?> claz, String functionName) throws IllegalAccessException, InstantiationException, InvocationTargetException, DependencyException
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}