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

top.crossoverjie.cicada.base.bean.CicadaBeanFactory Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package top.crossoverjie.cicada.base.bean;

/**
 * Function:
 *
 * @author crossoverJie
 *         Date: 2018/11/14 01:06
 * @since JDK 1.8
 */
public interface CicadaBeanFactory {

    /**
     * Register into bean Factory
     * @param object
     */
    void register(Object object);

    /**
     * Get bean from bean Factory
     * @param name
     * @return
     * @throws Exception
     */
    Object getBean(String name) throws Exception;

    /**
     * get bean by class type
     * @param clazz
     * @param 
     * @return bean
     * @throws Exception
     */
     T getBean(Class clazz) throws Exception;

    /**
     * release all beans
     */
    void releaseBean() ;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy