org.mmbase.util.functions
Class FunctionFactory

java.lang.Object
  extended byorg.mmbase.util.functions.FunctionFactory

public class FunctionFactory
extends Object

The FunctionFactory instanciates 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)

Since:
MMBase-1.7
Version:
$Id: FunctionFactory.java,v 1.8 2005/12/10 11:47:41 michiel Exp $
Author:
Michiel Meeuwissen

Constructor Summary
FunctionFactory()
           
 
Method Summary
static Function 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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionFactory

public FunctionFactory()
Method Detail

getFunction

public static Function getFunction(String setName,
                                   String functionName)
Gets a function from a function set


getFunction

public static Function getFunction(Cloud cloud,
                                   String setName,
                                   String functionName)
Gets a function from a function set on a certain cloud


getFunction

public static Function getFunction(Node node,
                                   String functionName)
Gets a function object for a Node.


getFunction

public static Function getFunction(NodeManager nodeManager,
                                   String functionName)
Gets a function object for a NodeManager


getFunction

public static Function getFunction(Module module,
                                   String functionName)
Gets a function object for a Module


getFunction

public static Function getFunction(Method method,
                                   String functionName)
Gets a function object for a certain Method


getFunction

public static Function getFunction(Class claz,
                                   String functionName)
                            throws IllegalAccessException,
                                   InstantiationException,
                                   InvocationTargetException
Gets a function object for a Bean

Throws:
IllegalAccessException
InstantiationException
InvocationTargetException


MMBase build 1.8.1.20060716