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
All Methods Instance Methods Concrete Methods 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 Detail
-
MapperRegistry
public MapperRegistry(Configuration config)
-
-
Method Detail
-
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 namesuperType
- 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
-
-