{
log.trace("Async method names match: " + invokedMethodName);
}
// Params match?
final MethodParametersMetaData asyncParams = asyncMethod.getMethodParams();
final Class<?>[] invokedParams = invokedMethod.getParameterTypes();
final int invokedParamsSize = invokedParams.length;
if (asyncParams.size() != invokedParams.length)
{
if (log.isTraceEnabled())
{
log.trace("Different async params size, no match");
}
return false;
}
for (int i = 0; i < invokedParamsSize; i++)
{
final String invokedParamTypeName = invokedParams[i].getName();
final String declaredName = asyncParams.get(i);
if (!invokedParamTypeName.equals(declaredName))
{
return false;
}
}