类 ImportsContextCustomizer

java.lang.Object
cn.taketoday.framework.test.context.ImportsContextCustomizer
所有已实现的接口:
ContextCustomizer

class ImportsContextCustomizer extends Object implements ContextCustomizer
ContextCustomizer to allow @Import annotations to be used directly on test classes.
从以下版本开始:
4.0
作者:
Phillip Webb, Andy Wilkinson, Harry Yang
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • ImportsContextCustomizer

      ImportsContextCustomizer(Class<?> testClass)
  • 方法详细资料

    • customizeContext

      public void customizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedContextConfiguration)
      从接口复制的说明: ContextCustomizer
      Customize the supplied ConfigurableApplicationContext after bean definitions have been loaded into the context but before the context has been refreshed.
      指定者:
      customizeContext 在接口中 ContextCustomizer
      参数:
      context - the context to customize
      mergedContextConfiguration - the merged context configuration
    • registerCleanupPostProcessor

      private void registerCleanupPostProcessor(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader)
    • registerImportsConfiguration

      private void registerImportsConfiguration(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader)
    • registerBean

      private cn.taketoday.beans.factory.config.BeanDefinition registerBean(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader, String beanName, Class<?> type)
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object