FileDocCategorySizeDatePackage
FunctionMapperImpl.javaAPI DocGlassfish v2 API7383Fri May 04 22:31:18 BST 2007com.sun.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: tcfujii $

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);