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

ars.database.activiti.UserEntityManagerFactory Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ars.database.activiti;

import org.activiti.engine.impl.interceptor.Session;
import org.activiti.engine.impl.interceptor.SessionFactory;
import org.activiti.engine.impl.persistence.entity.UserEntityManager;
import org.activiti.engine.impl.persistence.entity.UserIdentityManager;

/**
 * 用户管理工厂实现
 * 
 * @author yongqiangwu
 * 
 */
public class UserEntityManagerFactory implements SessionFactory {
	private UserEntityManager manager;

	public UserEntityManager getManager() {
		return manager;
	}

	public void setManager(UserEntityManager manager) {
		this.manager = manager;
	}

	@Override
	public Class getSessionType() {
		return UserIdentityManager.class;
	}

	@Override
	public Session openSession() {
		return this.manager;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy