public Map<String, Parameter<?>> getParameterInfo(Name name) { // build the parameter descriptions by using the DescribeParameter // annotations Method method = method(name.getLocalPart()); Map<String, Parameter<?>> input = new LinkedHashMap<String, Parameter<?>>(); Annotation[][] params = method.getParameterAnnotations(); Class<?>[] paramTypes = getMethodParamTypes(method); for (int i = 0; i < paramTypes.length; i++) { if (!(ProgressListener.class.isAssignableFrom(paramTypes[i]))) { Parameter<?> param = paramInfo(method.getDeclaringClass(), i, paramTypes[i], params[i]); input.put(param.key, param); } } return input; }
@SuppressWarnings("unchecked") public Map<String, Parameter<?>> getResultInfo(Name name, Map<String, Object> parameters) throws IllegalArgumentException { Method method = method(name.getLocalPart());
/** * Cerate a process (for the indicated name). * * <p>Subclasses can control the process using their implementation of: * * <ul> * <li>{@ #method(String)}: must return a non null method * <li>{@link #createProcessBean(Name)}: return a bean to use; or null for static methods * </ul> */ public Process create(Name name) { String methodName = name.getLocalPart(); Method meth = method(methodName); Object process = createProcessBean(name); if (process != null && (lookupInvertGridGeometry(process, meth.getName()) != null || lookupInvertQuery(process, meth.getName()) != null || lookupCustomizeReadParams(process, meth.getName()) != null)) { return new InvokeMethodRenderingProcess(meth, process); } else { return new InvokeMethodProcess(meth, process); } }
public Map<String, Parameter<?>> getParameterInfo(Name name) { // build the parameter descriptions by using the DescribeParameter // annotations Method method = method(name.getLocalPart()); Map<String, Parameter<?>> input = new LinkedHashMap<String, Parameter<?>>(); Annotation[][] params = method.getParameterAnnotations(); Class<?>[] paramTypes = method.getParameterTypes(); for (int i = 0; i < paramTypes.length; i++) { if (!(ProgressListener.class.isAssignableFrom(paramTypes[i]))) { Parameter<?> param = paramInfo(method.getDeclaringClass(), i, paramTypes[i], params[i]); input.put(param.key, param); } } return input; }
@SuppressWarnings("unchecked") public Map<String, Parameter<?>> getResultInfo(Name name, Map<String, Object> parameters) throws IllegalArgumentException { Method method = method(name.getLocalPart());
/** * Cerate a process (for the indicated name). * <p> * Subclasses can control the process using their implementation of: * <ul> * <li>{@ #method(String)}: must return a non null method</li> * <li>{@link #createProcessBean(Name)}: return a bean to use; or null for static methods</li> * </ul> */ public Process create(Name name) { String methodName = name.getLocalPart(); Method meth = method(methodName); Object process = createProcessBean(name); if (process != null && (lookupInvertGridGeometry(process, meth.getName()) != null || lookupInvertQuery(process, meth.getName()) != null)) { return new InvokeMethodRenderingProcess(meth, process); } else { return new InvokeMethodProcess(meth, process); } }