Class SpringUtility

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Component
    public class SpringUtility
    extends Object
    implements org.springframework.context.ApplicationContextAware
    • Constructor Detail

      • SpringUtility

        public SpringUtility()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getBean

        public static <T> T getBean​(Class clazz)
      • getContext

        public static org.springframework.context.ApplicationContext getContext()