Class TestConditionContext
java.lang.Object
io.microsphere.spring.test.context.annotation.TestConditionContext
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ConditionContext,org.springframework.context.ApplicationContextAware
public class TestConditionContext
extends Object
implements org.springframework.context.annotation.ConditionContext, org.springframework.context.ApplicationContextAware
ConditionContext for testing- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
ConditionContextConditionalCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.ConfigurableListableBeanFactoryorg.springframework.core.env.Environmentorg.springframework.beans.factory.support.BeanDefinitionRegistryorg.springframework.core.io.ResourceLoadervoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
TestConditionContext
public TestConditionContext()
-
-
Method Details
-
getRegistry
public org.springframework.beans.factory.support.BeanDefinitionRegistry getRegistry()- Specified by:
getRegistryin interfaceorg.springframework.context.annotation.ConditionContext
-
getBeanFactory
public org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()- Specified by:
getBeanFactoryin interfaceorg.springframework.context.annotation.ConditionContext
-
getEnvironment
public org.springframework.core.env.Environment getEnvironment()- Specified by:
getEnvironmentin interfaceorg.springframework.context.annotation.ConditionContext
-
getResourceLoader
public org.springframework.core.io.ResourceLoader getResourceLoader()- Specified by:
getResourceLoaderin interfaceorg.springframework.context.annotation.ConditionContext
-
getClassLoader
- Specified by:
getClassLoaderin interfaceorg.springframework.context.annotation.ConditionContext
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-