com.googlecode.jdbcproc.daofactory.guice.InitJdbcProcModule Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.jdbcproc.daofactory.guice;
import com.googlecode.jdbcproc.daofactory.DAOMethodInfo;
import com.googlecode.jdbcproc.daofactory.impl.block.service.CallableStatementExecutorBlockService;
import com.googlecode.jdbcproc.daofactory.impl.block.service.CallableStatementExecutorBlockServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.block.service.OutputParametersGetterBlockService;
import com.googlecode.jdbcproc.daofactory.impl.block.service.OutputParametersGetterBlockServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.block.service.ParametersSetterBlockService;
import com.googlecode.jdbcproc.daofactory.impl.block.service.ParametersSetterBlockServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.block.service.RegisterOutParametersBlockService;
import com.googlecode.jdbcproc.daofactory.impl.block.service.RegisterOutParametersBlockServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.block.service.ResultSetConverterBlockService;
import com.googlecode.jdbcproc.daofactory.impl.block.service.ResultSetConverterBlockServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.parameterconverter.ParameterConverterService;
import com.googlecode.jdbcproc.daofactory.impl.parameterconverter.ParameterConverterServiceImpl;
import com.googlecode.jdbcproc.daofactory.impl.procedureinfo.IStoredProcedureInfoManager;
import com.googlecode.jdbcproc.daofactory.impl.procedureinfo.StoredProcedureInfoManagerInitOnStartup;
import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
public class InitJdbcProcModule extends AbstractModule {
@Override protected void configure() {
bind(DAOMethodInfo.class).to(DaoMethodInfoGuice.class).in(Singleton.class);
bind(ParameterConverterService.class).to(ParameterConverterServiceImpl.class);
bind(CallableStatementExecutorBlockService.class).to(CallableStatementExecutorBlockServiceImpl.class);
bind(OutputParametersGetterBlockService.class).to(OutputParametersGetterBlockServiceImpl.class);
bind(ParametersSetterBlockService.class).to(ParametersSetterBlockServiceImpl.class);
bind(RegisterOutParametersBlockService.class).to(RegisterOutParametersBlockServiceImpl.class);
bind(ResultSetConverterBlockService.class).to(ResultSetConverterBlockServiceImpl.class);
bind(IStoredProcedureInfoManager.class).to(StoredProcedureInfoManagerInitOnStartup.class);
}
}