public class SpringBeanServiceInvoker extends Object implements ServiceInvoker, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringBeanServiceInvoker() |
| Modifier and Type | Method and Description |
|---|---|
protected Class |
classForName(String className) |
protected Object |
doInvoke(ServiceTaskStateImpl state,
Object[] input) |
protected Method |
findMethod(Class<?> clazz,
String methodName,
List<String> parameterTypes) |
protected Class |
getPrimitiveClass(String className) |
String |
getSagaJsonParser() |
Object |
invoke(ServiceTaskState serviceTaskState,
Object... input)
invoke service
|
protected Object |
invokeMethod(Object serviceBean,
Method method,
Object... input) |
protected boolean |
isPrimitive(Class<?> clazz) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setSagaJsonParser(String sagaJsonParser) |
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) |
protected Object |
toJavaObject(Object value,
Class paramType) |
public Object invoke(ServiceTaskState serviceTaskState, Object... input) throws Throwable
ServiceInvokerinvoke in interface ServiceInvokerserviceTaskState - the service task stateinput - optional paramsThrowable - the throwableprotected Object doInvoke(ServiceTaskStateImpl state, Object[] input) throws Throwable
Throwablepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
protected Method findMethod(Class<?> clazz, String methodName, List<String> parameterTypes)
protected Object invokeMethod(Object serviceBean, Method method, Object... input) throws Throwable
Throwableprotected boolean isPrimitive(Class<?> clazz)
public String getSagaJsonParser()
public void setSagaJsonParser(String sagaJsonParser)
Copyright © 2023 Seata. All rights reserved.