类 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> T getBean​(java.lang.Class<T> beanClass)  
    void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

  • 方法详细资料

    • 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