1 16 19 package org.apache.xalan.extensions; 20 21 import java.util.Hashtable ; 22 23 30 public abstract class ExtensionHandlerJava extends ExtensionHandler 31 { 32 33 34 protected String m_className = ""; 35 36 37 private Hashtable m_cachedMethods = new Hashtable (); 38 39 53 protected ExtensionHandlerJava(String namespaceUri, String scriptLang, 54 String className) 55 { 56 57 super(namespaceUri, scriptLang); 58 59 m_className = className; 60 } 61 62 72 public Object getFromCache(Object methodKey, Object objType, 73 Object [] methodArgs) 74 { 75 76 return m_cachedMethods.get(methodKey); 78 } 79 80 91 public Object putToCache(Object methodKey, Object objType, 92 Object [] methodArgs, Object methodObj) 93 { 94 95 return m_cachedMethods.put(methodKey, methodObj); 97 } 98 } 99 | Popular Tags |