Package io.microsphere.spring.context
Class ApplicationContextUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.spring.context.ApplicationContextUtils
-
public abstract class ApplicationContextUtils extends io.microsphere.util.BaseUtilsApplicationContextUtilities- Since:
- 1.0.0
- Author:
- Mercy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<?>APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASSTheApplicationContextAwareProcessorClass (Internal).static java.lang.StringAPPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAMETheApplicationContextAwareProcessorClass Name (Internal).
-
Constructor Summary
Constructors Constructor Description ApplicationContextUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.ApplicationContextasApplicationContext(org.springframework.beans.factory.BeanFactory beanFactory)static org.springframework.context.ConfigurableApplicationContextasConfigurableApplicationContext(org.springframework.context.ApplicationContext context)static org.springframework.beans.factory.config.BeanPostProcessorgetApplicationContextAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory)Get theApplicationContextAwareProcessorstatic org.springframework.beans.factory.config.BeanPostProcessorgetApplicationContextAwareProcessor(org.springframework.context.ConfigurableApplicationContext context)Get theApplicationContextAwareProcessor
-
-
-
Field Detail
-
APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAME
public static final java.lang.String APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAME
TheApplicationContextAwareProcessorClass Name (Internal).- See Also:
ApplicationContextAwareProcessor, Constant Field Values
-
APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS
public static final java.lang.Class<?> APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS
TheApplicationContextAwareProcessorClass (Internal).- See Also:
ApplicationContextAwareProcessor
-
-
Method Detail
-
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 theApplicationContextAwareProcessor- Returns:
- the
ApplicationContextAwareProcessor
-
getApplicationContextAwareProcessor
@Nullable public static org.springframework.beans.factory.config.BeanPostProcessor getApplicationContextAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory)
Get theApplicationContextAwareProcessor- Returns:
- the
ApplicationContextAwareProcessor
-
-