public class MethodFunction extends AbstractFunction(Code)
A function based on an abritrary method. Since the name of the parameters cannot be found by
reflection, this is only of limited use. Normally you would probably better use BeanFunction. A
method-function can come in handy on JSP's. With the advent of java 1.5 we can use annotations to
annotate acutal parameter names.
author: Michiel Meeuwissen version: $Id: MethodFunction.java,v 1.11 2007/11/25 18:25:49 nklasens Exp $ See Also:org.mmbase.module.core.MMObjectBuilder.executeFunction See Also:org.mmbase.bridge.Node.getFunctionValue See Also:org.mmbase.util.functions.BeanFunction since: MMBase-1.7
Returns the MethodFunction representing the method 'name' in class 'clazz'. If there are more
methods whith that name, the one with the largest number of by name annotated parameters is taken.
since: MMBase-1.9