com.nh.micro.template.MicroTMProxy Maven / Gradle / Ivy
package com.nh.micro.template;
import java.lang.reflect.Method;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.DefaultTransactionDefinition;
import com.nh.micro.db.GroovyDataSource;
import com.nh.micro.rule.engine.context.MicroContextHolder;
import com.nh.micro.rule.engine.core.plugin.IMicroProxy;
import com.nh.micro.template.MicroServiceTemplateSupport;
import com.nh.micro.template.MicroTranManagerHolder;
/**
*
* @author ninghao
*
*/
public class MicroTMProxy implements IMicroProxy {
public Object groovyObj=null;
public Object oldGroovyObj=null;
public Method checkMethod(String methodName,Object[] paramArray, Method[] methods){
int size=paramArray.length;
Class[] paramTypeArray=new Class[size];
for(int i=0;i