Class ApplicationContextHolder

java.lang.Object
com.bytedesk.core.utils.ApplicationContextHolder
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ApplicationContextHolder extends Object implements org.springframework.context.ApplicationContextAware
  • Field Details

    • context

      private static org.springframework.context.ApplicationContext context
  • Constructor Details

    • ApplicationContextHolder

      public ApplicationContextHolder()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getBean

      public static <T> T getBean(Class<T> beanClass)