标签:out 事务 sys creat result ack style this cal
public class CglibProxy implements MethodInterceptor { private Object target; public Object createProxy(Object target) { this.target = target; Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(this.target.getClass()); enhancer.setCallback(this); return enhancer.create(); } @Override public Object intercept(Object obj, Method method, Object[] args, MethodProxy methodProxy) throws Throwable { Object result =null ; System.out.println("事务开始"); result = methodProxy.invokeSuper(obj, args); System.out.println("事务结束"); return result; } }
标签:out 事务 sys creat result ack style this cal
原文地址:http://www.cnblogs.com/52hadoop/p/7693496.html