Class ApplicationContextUtils

java.lang.Object
io.microsphere.util.BaseUtils
io.microsphere.spring.context.ApplicationContextUtils

public abstract class ApplicationContextUtils extends io.microsphere.util.BaseUtils
ApplicationContext Utilities
Since:
1.0.0
Author:
Mercy
  • Field Details

    • APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAME

      public static final String APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAME
      The ApplicationContextAwareProcessor Class Name (Internal).
      See Also:
    • APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS

      public static final Class<?> APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS
      The ApplicationContextAwareProcessor Class (Internal).
      See Also:
      • ApplicationContextAwareProcessor
  • Constructor Details

    • ApplicationContextUtils

      public ApplicationContextUtils()
  • Method Details

    • asConfigurableApplicationContext

      public static org.springframework.context.ConfigurableApplicationContext asConfigurableApplicationContext(org.springframework.context.ApplicationContext context)
    • asApplicationContext

      public static org.springframework.context.ApplicationContext asApplicationContext(org.springframework.beans.factory.BeanFactory beanFactory)
    • getApplicationContextAwareProcessor

      @Nonnull public static org.springframework.beans.factory.config.BeanPostProcessor getApplicationContextAwareProcessor(org.springframework.context.ConfigurableApplicationContext context)
      Get the ApplicationContextAwareProcessor
      Returns:
      the ApplicationContextAwareProcessor
    • getApplicationContextAwareProcessor

      @Nullable public static org.springframework.beans.factory.config.BeanPostProcessor getApplicationContextAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory)
      Get the ApplicationContextAwareProcessor
      Returns:
      the ApplicationContextAwareProcessor