类 ImportsContextCustomizer
java.lang.Object
cn.taketoday.framework.test.context.ImportsContextCustomizer
- 所有已实现的接口:
ContextCustomizer
ContextCustomizer to allow @Import annotations to be used directly on
test classes.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Andy Wilkinson, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static classThe key used to ensure correct application context caching.(专用程序包) static classBeanDefinitionRegistryPostProcessorto cleanup temporary configuration added to load imports.(专用程序包) static class@Configurationregistered to trigger theImportsContextCustomizer.ImportsSelector.(专用程序包) static classImportSelectorthat returns the original test class so that direct@Importannotations are processed. -
字段概要
字段修饰符和类型字段说明private final ImportsContextCustomizer.ContextCustomizerKeyprivate static final Stringprivate final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcustomizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedContextConfiguration) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.booleaninthashCode()private cn.taketoday.beans.factory.config.BeanDefinitionregisterBean(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader, String beanName, Class<?> type) private voidregisterCleanupPostProcessor(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader) private voidregisterImportsConfiguration(cn.taketoday.beans.factory.support.BeanDefinitionRegistry registry, cn.taketoday.context.annotation.AnnotatedBeanDefinitionReader reader) toString()
-
字段详细资料
-
TEST_CLASS_NAME_ATTRIBUTE
- 另请参阅:
-
testClassName
-
key
-
-
构造器详细资料
-
ImportsContextCustomizer
ImportsContextCustomizer(Class<?> testClass)
-
-
方法详细资料
-
customizeContext
public void customizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedContextConfiguration) 从接口复制的说明:ContextCustomizerCustomize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.- 指定者:
customizeContext在接口中ContextCustomizer- 参数:
context- the context to customizemergedContextConfiguration- 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
-
equals
-
hashCode
public int hashCode() -
toString
-