Class<?>[] parms = new Class[1];
parms[0] = parameterValue.getClass();
this.method = adaptee.getClass().getMethod(methodName, parms);
}
} catch (SecurityException ex) {
throw new RQLException("Security exception getting method with name " + methodName + " for parameter value " + parameterValue
+ " on page " + adaptee.getInfoText(), ex);
} catch (NoSuchMethodException ex) {
throw new RQLException("Missing method with name " + methodName + " for parameter value " + parameterValue + " on page "
+ adaptee.getInfoText(), ex);
}
// check method's return type: fix string
if (!method.getReturnType().equals("".getClass())) {
throw new RQLException("Adapter misconfiguration exception: method with name " + methodName + " for parameter value " + parameterValue
+ " doesn't return a string object");
}
}