org.mmbase.util.functions
Class FunctionFactory

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

public class FunctionFactory
extends java.lang.Object

A way to instantiate function objects. A hand full a 'getFunction' methods are implemented. Principally other implementations could be plugged in by replacing the right classes (putting them in WEB-INF/classes should do the trick).

Since:
MMBase-1.7
Version:
$Id: FunctionFactory.java,v 1.3 2004/02/11 20:43:21 keesj Exp $
Author:
Michiel Meeuwissen

Constructor Summary
FunctionFactory()
           
 
Method Summary
static Function getFunction(java.lang.Class claz, java.lang.String name)
          Gets a function object for a certain Bean
static Function getFunction(java.lang.reflect.Method method, java.lang.String name)
          Gets a function object for a certain Method
static Function getFunction(Module module, java.lang.String name)
          Gets a function object for a certain Module
static Function getFunction(NodeManager nodeManager, java.lang.String name)
          Gets a function object for a certain NodeManager
static Function getFunction(Node node, java.lang.String name)
          Gets a function object for a certain Node.
static Function getFunction(java.lang.String set, java.lang.String name)
          Gets a function from given set, with given name
 
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(java.lang.String set,
                                   java.lang.String name)
Gets a function from given set, with given name


getFunction

public static Function getFunction(Node node,
                                   java.lang.String name)
Gets a function object for a certain Node.


getFunction

public static Function getFunction(NodeManager nodeManager,
                                   java.lang.String name)
Gets a function object for a certain NodeManager


getFunction

public static Function getFunction(Module module,
                                   java.lang.String name)
Gets a function object for a certain Module


getFunction

public static Function getFunction(java.lang.reflect.Method method,
                                   java.lang.String name)
Gets a function object for a certain Method


getFunction

public static Function getFunction(java.lang.Class claz,
                                   java.lang.String name)
Gets a function object for a certain Bean



MMBase build 1.7.4.20050922