public class MyBatisMapperProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
static <T> T |
newMapperProxy(java.lang.Class<T> mapperInterface,
org.apache.ibatis.session.SqlSession sqlSession)
生成代理方法
|
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic static <T> T newMapperProxy(java.lang.Class<T> mapperInterface,
org.apache.ibatis.session.SqlSession sqlSession)
T - 泛型mapperInterface - mapper接口sqlSession - sqlSession