public MethodInfo( short id, Method m ) { this.id = id; this.method = m; this.representation = methodToString(m); this.callType = getCallType(m); }
@Override public Object invoke(Object o, Method method, Object[] os) throws Throwable { MethodInfo mi = getMethodInfo(method); if( mi == null ) { // Try to invoke locally return method.invoke(this, os); } return rmi.invokeRemote(channel, objectId, mi.getId(), mi.getCallType(), os); }
public MethodInfo( short id, Method m ) { this.id = id; this.method = m; this.representation = methodToString(m); this.callType = getCallType(m); }
@Override public Object invoke(Object o, Method method, Object[] os) throws Throwable { MethodInfo mi = getMethodInfo(method); if( mi == null ) { // Try to invoke locally return method.invoke(this, os); } return rmi.invokeRemote(channel, objectId, mi.getId(), mi.getCallType(), os); }