public class Invoker extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected DefaultMethodMeta |
defaultMethodMeta |
protected InvocationCaller |
invocationCaller |
protected PojoInvocationCreator |
invocationCreator |
protected PojoConsumerMetaRefresher |
metaRefresher |
| Constructor and Description |
|---|
Invoker(String microserviceName,
String schemaId,
Class<?> consumerIntf) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationCaller |
createInvocationCaller() |
PojoInvocationCreator |
createInvocationCreator() |
protected PojoConsumerMetaRefresher |
createInvokerMeta(String microserviceName,
String schemaId,
Class<?> consumerIntf) |
static <T> T |
createProxy(String microserviceName,
String schemaId,
Class<?> consumerIntf) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
prepareInvocationCaller() |
protected final PojoConsumerMetaRefresher metaRefresher
protected final PojoInvocationCreator invocationCreator
protected final DefaultMethodMeta defaultMethodMeta
protected InvocationCaller invocationCaller
public static <T> T createProxy(String microserviceName, String schemaId, Class<?> consumerIntf)
protected PojoConsumerMetaRefresher createInvokerMeta(String microserviceName, String schemaId, Class<?> consumerIntf)
public PojoInvocationCreator createInvocationCreator()
protected InvocationCaller createInvocationCaller()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected void prepareInvocationCaller()
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.