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> voidaddMapper(Class<T> type)voidaddMappers(String packageName)Adds the mappers.voidaddMappers(String packageName, Class<?> superType)Adds the mappers.<T> TgetMapper(Class<T> type, SqlSession sqlSession)Collection<Class<?>>getMappers()Gets the mappers.<T> booleanhasMapper(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
 
 
 - 
 
 -