com.github.codingdebugallday.integration.refresh.AbstractPluginSpringBeanRefresh Maven / Gradle / Ivy
The newest version!
package com.github.codingdebugallday.integration.refresh;
import java.util.List;
import com.github.codingdebugallday.integration.application.PluginApplication;
/**
*
* 抽象的插件SpringBean刷新类监听类
* 继承该类。在插件动态的注册卸载时, refresh方法被触发, 可以获取到当前环境所有T实现的所有beans(不包括主程序中的beans)
*
*
* @author isaac 2020/6/16 15:58
* @since 1.0
*/
public abstract class AbstractPluginSpringBeanRefresh extends AbstractSpringBeanRefresh {
public AbstractPluginSpringBeanRefresh(PluginApplication pluginApplication) {
super(pluginApplication);
}
/**
* 刷新bean
*/
@Override
protected List refresh() {
return pluginApplication
.getPluginUser()
.getPluginBeans(typeClass);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy