Class MapperProxy<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.reflect.InvocationHandler

    public class MapperProxy<T>
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler, java.io.Serializable
    Author:
    Clinton Begin, Eduardo Macarron
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MapperProxy​(SqlSession sqlSession, java.lang.Class<T> mapperInterface, java.util.Map<java.lang.reflect.Method,​MapperMethod> methodCache)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapperProxy

        public MapperProxy​(SqlSession sqlSession,
                           java.lang.Class<T> mapperInterface,
                           java.util.Map<java.lang.reflect.Method,​MapperMethod> methodCache)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable