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

org.sagacity.sqltoy.integration.AppContext Maven / Gradle / Ivy

There is a newer version: 5.6.31.jre8
Show newest version
package org.sagacity.sqltoy.integration;

import java.util.Map;

/**
 * @project sagacity-sqltoy
 * @description 构建一个应用上下文接口,适配spring和其他框架
 * @author zhongxuchen
 * @version v1.0, Date:2022年6月14日
 * @modify 2022年6月14日,修改说明
 */
public interface AppContext {
	/**
	 * @TODO 判断容器种是否存在相应的bean
	 * @param beanName
	 * @return
	 */
	public boolean containsBean(String beanName);

	/**
	 * @TODO 根据名称获取bean的实例
	 * @param beanName
	 * @return
	 */
	public Object getBean(String beanName);

	/**
	 * @TODO 根据类型获取bean的实例
	 * @param 
	 * @param requiredType
	 * @return
	 */
	public  T getBean(Class requiredType);

	/**
	 * @TODO 根据类型获取所有相关bean
	 * @param 
	 * @param type
	 * @return
	 */
	public  Map getBeansOfType(Class type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy