Package org.apache.ibatis.binding
Class MapperRegistry
- java.lang.Object
-
- org.apache.ibatis.binding.MapperRegistry
-
public class MapperRegistry extends java.lang.Object
- Author:
- Clinton Begin, Eduardo Macarron, Lasse Voss
-
-
Constructor Summary
Constructors Constructor Description MapperRegistry(Configuration config)
-
Method Summary
Modifier and Type Method Description <T> void
addMapper(java.lang.Class<T> type)
void
addMappers(java.lang.String packageName)
void
addMappers(java.lang.String packageName, java.lang.Class<?> superType)
<T> T
getMapper(java.lang.Class<T> type, SqlSession sqlSession)
java.util.Collection<java.lang.Class<?>>
getMappers()
<T> boolean
hasMapper(java.lang.Class<T> type)
-
-
-
Constructor Detail
-
MapperRegistry
public MapperRegistry(Configuration config)
-
-
Method Detail
-
getMapper
public <T> T getMapper(java.lang.Class<T> type, SqlSession sqlSession)
-
hasMapper
public <T> boolean hasMapper(java.lang.Class<T> type)
-
addMapper
public <T> void addMapper(java.lang.Class<T> type)
-
getMappers
public java.util.Collection<java.lang.Class<?>> getMappers()
- Since:
- 3.2.2
-
addMappers
public void addMappers(java.lang.String packageName, java.lang.Class<?> superType)
- Since:
- 3.2.2
-
addMappers
public void addMappers(java.lang.String packageName)
- Since:
- 3.2.2
-
-