Class SpringBeanUtils

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

    @Service("springBeanUtils")
    public class SpringBeanUtils
    extends Object
    implements org.springframework.beans.factory.BeanFactoryAware
    • Constructor Detail

      • SpringBeanUtils

        public SpringBeanUtils()
    • Method Detail

      • getBean

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

        public static <T> T getBean​(Class<T> clazz,
                                    String name)
      • getBean

        public static <T> T getBean​(String name)
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException