Class MapperRegistry

java.lang.Object
org.apache.ibatis.binding.MapperRegistry

public class MapperRegistry extends Object
Author:
Clinton Begin, Eduardo Macarron, Lasse Voss
  • Constructor Details

  • Method Details

    • getMapper

      public <T> T getMapper(Class<T> type, SqlSession sqlSession)
    • hasMapper

      public <T> boolean hasMapper(Class<T> type)
    • addMapper

      public <T> void addMapper(Class<T> type)
    • getMappers

      public Collection<Class<?>> getMappers()
      Gets the mappers.
      Returns:
      the mappers
      Since:
      3.2.2
    • addMappers

      public void addMappers(String packageName, Class<?> superType)
      Adds the mappers.
      Parameters:
      packageName - the package name
      superType - the super type
      Since:
      3.2.2
    • addMappers

      public void addMappers(String packageName)
      Adds the mappers.
      Parameters:
      packageName - the package name
      Since:
      3.2.2