Package org.apache.ibatis.binding
Class MapperRegistry
java.lang.Object
org.apache.ibatis.binding.MapperRegistry
public class MapperRegistry extends 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(Class<T> type)
void
addMappers(String packageName)
Adds the mappers.void
addMappers(String packageName, Class<?> superType)
Adds the mappers.<T> T
getMapper(Class<T> type, SqlSession sqlSession)
Collection<Class<?>>
getMappers()
Gets the mappers.<T> boolean
hasMapper(Class<T> type)
-
Constructor Details
-
MapperRegistry
-
-
Method Details
-
getMapper
-
hasMapper
-
addMapper
-
getMappers
Gets the mappers.- Returns:
- the mappers
- Since:
- 3.2.2
-
addMappers
Adds the mappers.- Parameters:
packageName
- the package namesuperType
- the super type- Since:
- 3.2.2
-
addMappers
Adds the mappers.- Parameters:
packageName
- the package name- Since:
- 3.2.2
-