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 interfaceprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Constructor<MethodHandles.Lookup> private final Map<Method, MapperProxy.MapperMethodInvoker> private static final Methodprivate static final longprivate final SqlSession -
Constructor Summary
ConstructorsConstructorDescriptionMapperProxy(SqlSession sqlSession, Class<T> mapperInterface, Map<Method, MapperProxy.MapperMethodInvoker> methodCache) -
Method Summary
Modifier and TypeMethodDescriptionprivate MapperProxy.MapperMethodInvokercachedInvoker(Method method) private MethodHandlegetMethodHandleJava8(Method method) private MethodHandlegetMethodHandleJava9(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:
invokein 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
-