类 SpringContextHelper
java.lang.Object
com.github.shoothzj.sdk.spring.util.SpringContextHelper
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service
public class SpringContextHelper
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
-
构造器概要
构造器 构造器 说明 SpringContextHelper() -
方法概要
修饰符和类型 方法 说明 static <T> TgetBean(java.lang.Class<T> beanClass)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
构造器详细资料
-
SpringContextHelper
public SpringContextHelper()
-
-
方法详细资料
-
getBean
public static <T> T getBean(java.lang.Class<T> beanClass) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-