FileDocCategorySizeDatePackage
FunctionMapperImpl.javaAPI DocApache Tomcat 6.0.145965Fri Jul 20 04:20:36 BST 2007org.apache.el.lang

FunctionMapperImpl

public class FunctionMapperImpl extends FunctionMapper implements Externalizable
author
Jacob Hookom [jacob@hookom.net]
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $

Fields Summary
private static final long
serialVersionUID
protected Map
functions
Constructors Summary
Methods Summary
public voidaddFunction(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method m)

        if (this.functions == null) {
            this.functions = new HashMap();
        }
        Function f = new Function(prefix, localName, m);
        synchronized (this) {
            this.functions.put(prefix+":"+localName, f);
        }
    
public voidreadExternal(java.io.ObjectInput in)

        this.functions = (Map) in.readObject();
    
public java.lang.reflect.MethodresolveFunction(java.lang.String prefix, java.lang.String localName)


    /*
     * (non-Javadoc)
     * 
     * @see javax.el.FunctionMapper#resolveFunction(java.lang.String,
     *      java.lang.String)
     */
          
        if (this.functions != null) {
            Function f = (Function) this.functions.get(prefix + ":" + localName);
            return f.getMethod();
        }
        return null;
    
public voidwriteExternal(java.io.ObjectOutput out)

        out.writeObject(this.functions);