package cn.axzo.workflow.starter.feign.ext;

import feign.InvocationHandlerFactory;
import feign.Target;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Map;

/**
 * 用于生成 InvocationHandler
 *
 * @author wangli
 * @since 2024/5/29 22:56
 */
public class WorkflowEngineStarterInvocationHandlerFactory implements InvocationHandlerFactory {
    @Override
    public InvocationHandler create(Target target, Map<Method, MethodHandler> dispatch) {
        return new WorkflowEngineStarterInvocationHandler(target, dispatch);
    }
}
