Package org.apache.ibatis.binding
Class MapperProxy<T>
java.lang.Object
org.apache.ibatis.binding.MapperProxy<T>
- All Implemented Interfaces:
Serializable
,InvocationHandler
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static interface
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final Constructor<MethodHandles.Lookup>
private final Map<Method,
MapperProxy.MapperMethodInvoker> private static final Method
private static final long
private final SqlSession
-
Constructor Summary
ConstructorsConstructorDescriptionMapperProxy
(SqlSession sqlSession, Class<T> mapperInterface, Map<Method, MapperProxy.MapperMethodInvoker> methodCache) -
Method Summary
Modifier and TypeMethodDescriptionprivate MapperProxy.MapperMethodInvoker
cachedInvoker
(Method method) private MethodHandle
getMethodHandleJava8
(Method method) private MethodHandle
getMethodHandleJava9
(Method method)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ALLOWED_MODES
private static final int ALLOWED_MODES- See Also:
-
lookupConstructor
-
privateLookupInMethod
-
sqlSession
-
mapperInterface
-
methodCache
-
-
Constructor Details
-
MapperProxy
public MapperProxy(SqlSession sqlSession, Class<T> mapperInterface, Map<Method, MapperProxy.MapperMethodInvoker> methodCache)
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
cachedInvoker
- Throws:
Throwable
-
getMethodHandleJava9
private MethodHandle getMethodHandleJava9(Method method) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException -
getMethodHandleJava8
private MethodHandle getMethodHandleJava8(Method method) throws IllegalAccessException, InstantiationException, InvocationTargetException
-