Package io.microsphere.spring.context
Class ApplicationContextUtils
java.lang.Object
io.microsphere.spring.context.ApplicationContextUtils
- All Implemented Interfaces:
io.microsphere.util.Utils
ApplicationContext
Utilities- Since:
- 1.0.0
- Author:
- Mercy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.ApplicationContext
asApplicationContext
(org.springframework.beans.factory.BeanFactory beanFactory) static org.springframework.context.ConfigurableApplicationContext
static org.springframework.context.ConfigurableApplicationContext
asConfigurableApplicationContext
(org.springframework.context.ApplicationContext context) static org.springframework.beans.factory.config.BeanPostProcessor
getApplicationContextAwareProcessor
(org.springframework.beans.factory.BeanFactory beanFactory) Get theApplicationContextAwareProcessor
static org.springframework.beans.factory.config.BeanPostProcessor
getApplicationContextAwareProcessor
(org.springframework.context.ConfigurableApplicationContext context) Get theApplicationContextAwareProcessor
-
Field Details
-
APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS_NAME
TheApplicationContextAwareProcessor
Class Name (Internal).- See Also:
-
ApplicationContextAwareProcessor
- Constant Field Values
-
APPLICATION_CONTEXT_AWARE_PROCESSOR_CLASS
TheApplicationContextAwareProcessor
Class (Internal).- See Also:
-
ApplicationContextAwareProcessor
-
-
Method Details
-
asConfigurableApplicationContext
public static org.springframework.context.ConfigurableApplicationContext asConfigurableApplicationContext(org.springframework.context.ApplicationContext context) -
asConfigurableApplicationContext
public static org.springframework.context.ConfigurableApplicationContext asConfigurableApplicationContext(Object object) -
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
-