public class AbstractRefererHandler<T> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<Cluster<T>> |
clusters |
protected Class<T> |
clz |
protected String |
interfaceName |
protected SwitcherService |
switcherService |
| 构造器和说明 |
|---|
AbstractRefererHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
call(Caller<T> caller,
URL refUrl,
Request request,
Class<?> returnType,
boolean async) |
protected boolean |
fillDefaultRequest(DefaultRequest request,
Method method,
Object[] args) |
protected void |
fillWithContext(Request request,
boolean async) |
protected Object |
getDefaultReturnValue(Class<?> returnType) |
protected Class<?> |
getRealReturnType(boolean asyncCall,
Class<?> clazz,
Method method,
String methodName) |
protected boolean |
isLocalMethod(Method method)
toString,equals,hashCode,finalize等接口未声明的方法不进行远程调用
|
protected SwitcherService switcherService
protected String interfaceName
protected Object call(Caller<T> caller, URL refUrl, Request request, Class<?> returnType, boolean async) throws Throwable
Throwableprotected boolean isLocalMethod(Method method)
protected boolean fillDefaultRequest(DefaultRequest request, Method method, Object[] args)
protected Class<?> getRealReturnType(boolean asyncCall, Class<?> clazz, Method method, String methodName)
protected void fillWithContext(Request request, boolean async)
Copyright © 2023. All rights reserved.