类 ImportsContextCustomizer.ContextCustomizerKey

java.lang.Object
cn.taketoday.framework.test.context.ImportsContextCustomizer.ContextCustomizerKey
封闭类:
ImportsContextCustomizer

static class ImportsContextCustomizer.ContextCustomizerKey extends Object
The key used to ensure correct application context caching. Keys are generated based on all the annotations used with the test that aren't core Java or Kotlin annotations. We must use something broader than just @Import annotations since an @Import may use an ImportSelector which could make decisions based on anything available from AnnotationMetadata.
  • 字段详细资料

    • ANNOTATION_FILTERS

      private static final Set<cn.taketoday.core.annotation.AnnotationFilter> ANNOTATION_FILTERS
    • key

      private final Set<Object> key
  • 构造器详细资料

    • ContextCustomizerKey

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

    • isFilteredAnnotation

      private boolean isFilteredAnnotation(String typeName)
    • determineImports

      private Set<Object> determineImports(cn.taketoday.core.annotation.MergedAnnotations annotations, Class<?> testClass)
    • determineImports

      private Set<Object> determineImports(Class<?> source, cn.taketoday.core.type.AnnotationMetadata metadata)
    • synthesize

      private Set<Object> synthesize(cn.taketoday.core.annotation.MergedAnnotations annotations)
    • instantiate

      private <T> T instantiate(Class<T> source)
    • equals

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

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

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