Class SpringContextProvider

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

    @Component("springContextProvider")
    @Priority(-2147483648)
    public class SpringContextProvider
    extends Object
    implements org.springframework.context.ApplicationContextAware, org.springframework.context.EmbeddedValueResolverAware
    • Constructor Detail

      • SpringContextProvider

        public SpringContextProvider()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext ctx)
                                   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> clazz)
      • getBean

        public static Object getBean​(String beanName)
      • getBean

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

        public static org.springframework.context.ApplicationContext getApplicationContext()
      • autowire

        public static void autowire​(Object toAutowire)
      • finalize

        public void finalize()
        Overrides:
        finalize in class Object
      • setEmbeddedValueResolver

        public void setEmbeddedValueResolver​(org.springframework.util.StringValueResolver resolver)
        Specified by:
        setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware
      • resolveProperties

        public static void resolveProperties​(Object obj)