Class SpringPro

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

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

      • SpringPro

        public SpringPro()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(@NotNull
                                          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

        @Nullable
        public static Object getBean​(String name)
      • getBean

        @Nullable
        public static <T> T getBean​(Class<T> beanType)
      • getBean

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

        public static String[] getActiveProfiles()
      • areProfileActive

        public static boolean areProfileActive​(String... testForAny)