类 SpringUtil
java.lang.Object
cn.gybyt.web.util.SpringUtil
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component("gybytSpringUtil")
public class SpringUtil
extends Object
implements org.springframework.context.ApplicationContextAware
spring 工具类
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> Tstatic <T> Tstatic <T> Tstatic org.springframework.context.ApplicationContextstatic voidpublishEvent(org.springframework.context.ApplicationEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext context)
-
构造器详细资料
-
SpringUtil
public SpringUtil()
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
getBean
-
getBean
-
getBean
-
getContext
public static org.springframework.context.ApplicationContext getContext() -
publishEvent
public static void publishEvent(org.springframework.context.ApplicationEvent event)
-