类 ApplicationContextHolder
java.lang.Object
org.dromara.dynamictp.common.spring.ApplicationContextHolder
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ApplicationContextHolder
extends Object
implements org.springframework.context.ApplicationContextAware
ApplicationContextHolder related
- 从以下版本开始:
- 1.0.0
- 作者:
- yanhom
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> Tstatic <T> TgetBeansOfType(Class<T> clazz) static org.springframework.core.env.Environmentstatic org.springframework.context.ApplicationContextstatic voidpublishEvent(org.springframework.context.ApplicationEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
构造器详细资料
-
ApplicationContextHolder
public ApplicationContextHolder()
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
getBean
-
getBean
-
getBeansOfType
-
getInstance
public static org.springframework.context.ApplicationContext getInstance() -
getEnvironment
public static org.springframework.core.env.Environment getEnvironment() -
publishEvent
public static void publishEvent(org.springframework.context.ApplicationEvent event)
-