m = MethodMapper.lookupOperation(op, this);
if (m != null)
{
// operation found on the 'this' invoker
target = this;
dispatcher = new ReflectedDispatcher(m, dynamicResource);
}
else
{
// operation not found, use late binding
// What is this late binding attempt and should there be a warning?
dispatcher = new ReflectedDispatcher(dynamicResource);
}
}
else
{
// operation found on the resource
target = resource;
dispatcher = new ReflectedDispatcher(m, dynamicResource);
}
if (trace)
log.trace(getObjectName() + " will dispatch op=" + opKey +
" to " + Strings.defaultToString(target) +
" method= " + m);