All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.dbm.spring.DbmSessionObjectFactory Maven / Gradle / Ivy

The newest version!
package org.onetwo.dbm.spring;

import org.onetwo.dbm.core.spi.DbmSession;
import org.onetwo.dbm.core.spi.DbmSessionFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectFactory;

public class DbmSessionObjectFactory implements ObjectFactory{

	private DbmSessionFactory sessionFactory;
	
	public DbmSessionObjectFactory(DbmSessionFactory sessionFactory) {
		super();
		this.sessionFactory = sessionFactory;
	}

	@Override
	public DbmSession getObject() throws BeansException {
		return sessionFactory.getSession();
	}
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy