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

com.alibaba.cola.domain.DomainFactory Maven / Gradle / Ivy

The newest version!
package com.alibaba.cola.domain;

import com.alibaba.cola.common.ApplicationContextHelper;

/**
 * DomainFactory
 *
 * @author Frank Zhang
 * @date 2019-01-03 2:41 PM
 */
public class DomainFactory {

    public static  T create(Class entityClz){
        return ApplicationContextHelper.getBean(entityClz);
    }

    public static  T getBean(Class entityClz){
        return ApplicationContextHelper.getBean(entityClz);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy