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:
  • ConditionContext
  • Conditional
  • Condition
  • Constructor Details

    • TestConditionContext

      public TestConditionContext()
  • Method Details

    • getRegistry

      public org.springframework.beans.factory.support.BeanDefinitionRegistry getRegistry()
      Specified by:
      getRegistry in interface org.springframework.context.annotation.ConditionContext
    • getBeanFactory

      public org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
      Specified by:
      getBeanFactory in interface org.springframework.context.annotation.ConditionContext
    • getEnvironment

      public org.springframework.core.env.Environment getEnvironment()
      Specified by:
      getEnvironment in interface org.springframework.context.annotation.ConditionContext
    • getResourceLoader

      public org.springframework.core.io.ResourceLoader getResourceLoader()
      Specified by:
      getResourceLoader in interface org.springframework.context.annotation.ConditionContext
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface org.springframework.context.annotation.ConditionContext
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException