handler = new ExtensionHandlerJavaClass(uri, "javaclass", className);
/** * Process a call to an XPath extension function * * @param extFunction The XPath extension function * @param args The arguments of the function call. * @param exprContext The context in which this expression is being executed. * @return the return value of the function evaluation. * @throws TransformerException */ public Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws TransformerException { return callFunction(extFunction.getFunctionName(), args, extFunction.getMethodKey(), exprContext); }
/** * Construct a new extension namespace handler given all the information * needed. * @param namespaceUri the extension namespace URI that I'm implementing * @param scriptLang language of code implementing the extension * @param className the fully qualified class name of the class */ public ExtensionHandlerJavaClass(String namespaceUri, String scriptLang, String className) { super(namespaceUri, scriptLang, className); try { m_classObj = getClassForName(className); } catch (ClassNotFoundException e) { // For now, just let this go. We'll catch it when we try to invoke a method. } }
Method m = (Method) getFromCache(methodKey, null, null); if (null == m) putToCache(methodKey, null, null, m);
c = (Constructor) getFromCache(methodKey, null, methodArgs); exprContext); if (methodKey != null) putToCache(methodKey, null, methodArgs, c); m = (Method) getFromCache(methodKey, null, methodArgs); resolveType); if (methodKey != null) putToCache(methodKey, null, methodArgs, m);
/** * Process a call to an XPath extension function * * @param extFunction The XPath extension function * @param args The arguments of the function call. * @param exprContext The context in which this expression is being executed. * @return the return value of the function evaluation. * @throws TransformerException */ public Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws TransformerException { return callFunction(extFunction.getFunctionName(), args, extFunction.getMethodKey(), exprContext); }
handler = new ExtensionHandlerJavaClass(uri, "javaclass", className);
Method m = (Method) getFromCache(methodKey, null, null); if (null == m) putToCache(methodKey, null, null, m);
/** * Construct a new extension namespace handler given all the information * needed. * @param namespaceUri the extension namespace URI that I'm implementing * @param scriptLang language of code implementing the extension * @param className the fully qualified class name of the class */ public ExtensionHandlerJavaClass(String namespaceUri, String scriptLang, String className) { super(namespaceUri, scriptLang, className); try { m_classObj = getClassForName(className); } catch (ClassNotFoundException e) { // For now, just let this go. We'll catch it when we try to invoke a method. } }
/** * Process a call to an XPath extension function * * @param extFunction The XPath extension function * @param args The arguments of the function call. * @param exprContext The context in which this expression is being executed. * @return the return value of the function evaluation. * @throws TransformerException */ public Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws TransformerException { return callFunction(extFunction.getFunctionName(), args, extFunction.getMethodKey(), exprContext); }
handler = new ExtensionHandlerJavaClass(uri, "javaclass", className);
c = (Constructor) getFromCache(methodKey, null, methodArgs); exprContext); if (methodKey != null) putToCache(methodKey, null, methodArgs, c); m = (Method) getFromCache(methodKey, null, methodArgs); resolveType); if (methodKey != null) putToCache(methodKey, null, methodArgs, m);
/** * Process a call to an XPath extension function * * @param extFunction The XPath extension function * @param args The arguments of the function call. * @param exprContext The context in which this expression is being executed. * @return the return value of the function evaluation. * @throws TransformerException */ public Object callFunction(FuncExtFunction extFunction, Vector args, ExpressionContext exprContext) throws TransformerException { return callFunction(extFunction.getFunctionName(), args, extFunction.getMethodKey(), exprContext); }
handler = new ExtensionHandlerJavaClass(uri, "javaclass", className);