@Test public void testAddToConfigTrue() throws Exception { SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean(); factoryBean.setDatabaseIdProvider(null); factoryBean.setDataSource(dataSource); factoryBean.setPlugins(new Interceptor[] { executorInterceptor }); SqlSessionFactory sqlSessionFactory = factoryBean.getObject(); find(new SqlSessionTemplate(sqlSessionFactory), true); assertCommit(); assertSingleConnection(); assertExecuteCount(1); }
@Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); @Override T getObject(); @Override Class<T> getObjectType(); @Override boolean isSingleton(); void setMapperInterface(Class<T> mapperInterface); Class<T> getMapperInterface(); void setAddToConfig(boolean addToConfig); boolean isAddToConfig(); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); @Override T getObject(); @Override Class<T> getObjectType(); @Override boolean isSingleton(); void setMapperInterface(Class<T> mapperInterface); Class<T> getMapperInterface(); void setAddToConfig(boolean addToConfig); boolean isAddToConfig();  }