类 ContextConfigurationAttributes

java.lang.Object
cn.taketoday.test.context.ContextConfigurationAttributes

public class ContextConfigurationAttributes extends Object
ContextConfigurationAttributes encapsulates the context configuration attributes declared via @ContextConfiguration.
从以下版本开始:
4.0
作者:
Sam Brannen, Phillip Webb
另请参阅:
  • 字段详细资料

    • EMPTY_LOCATIONS

      private static final String[] EMPTY_LOCATIONS
    • EMPTY_CLASSES

      private static final Class<?>[] EMPTY_CLASSES
    • logger

      private static final cn.taketoday.logging.Logger logger
    • declaringClass

      private final Class<?> declaringClass
    • classes

      private Class<?>[] classes
    • locations

      private String[] locations
    • inheritLocations

      private final boolean inheritLocations
    • initializers

      private final Class<? extends cn.taketoday.context.ApplicationContextInitializer>[] initializers
    • inheritInitializers

      private final boolean inheritInitializers
    • name

      @Nullable private final String name
    • contextLoaderClass

      private final Class<? extends ContextLoader> contextLoaderClass
  • 构造器详细资料

    • ContextConfigurationAttributes

      public ContextConfigurationAttributes(Class<?> declaringClass)
      Construct a new ContextConfigurationAttributes instance with default values.
      参数:
      declaringClass - the test class that declared @ContextConfiguration, either explicitly or implicitly
    • ContextConfigurationAttributes

      public ContextConfigurationAttributes(Class<?> declaringClass, ContextConfiguration contextConfiguration)
      Construct a new ContextConfigurationAttributes instance for the supplied @ContextConfiguration annotation and the test class that declared it.
      参数:
      declaringClass - the test class that declared @ContextConfiguration
      contextConfiguration - the annotation from which to retrieve the attributes
    • ContextConfigurationAttributes

      public ContextConfigurationAttributes(Class<?> declaringClass, cn.taketoday.core.annotation.AnnotationAttributes annAttrs)
      Construct a new ContextConfigurationAttributes instance for the supplied AnnotationAttributes (parsed from a @ContextConfiguration annotation) and the test class that declared them.
      参数:
      declaringClass - the test class that declared @ContextConfiguration
      annAttrs - the annotation attributes from which to retrieve the attributes
    • ContextConfigurationAttributes

      public ContextConfigurationAttributes(Class<?> declaringClass, String[] locations, Class<?>[] classes, boolean inheritLocations, Class<? extends cn.taketoday.context.ApplicationContextInitializer>[] initializers, boolean inheritInitializers, Class<? extends ContextLoader> contextLoaderClass)
      Construct a new ContextConfigurationAttributes instance for the test class that declared the @ContextConfiguration annotation and its corresponding attributes.
      参数:
      declaringClass - the test class that declared @ContextConfiguration
      locations - the resource locations declared via @ContextConfiguration
      classes - the annotated classes declared via @ContextConfiguration
      inheritLocations - the inheritLocations flag declared via @ContextConfiguration
      initializers - the context initializers declared via @ContextConfiguration
      inheritInitializers - the inheritInitializers flag declared via @ContextConfiguration
      contextLoaderClass - the ContextLoader class declared via @ContextConfiguration
      抛出:
      IllegalArgumentException - if the declaringClass or contextLoaderClass is null
    • ContextConfigurationAttributes

      public ContextConfigurationAttributes(Class<?> declaringClass, String[] locations, Class<?>[] classes, boolean inheritLocations, Class<? extends cn.taketoday.context.ApplicationContextInitializer>[] initializers, boolean inheritInitializers, @Nullable String name, Class<? extends ContextLoader> contextLoaderClass)
      Construct a new ContextConfigurationAttributes instance for the test class that declared the @ContextConfiguration annotation and its corresponding attributes.
      参数:
      declaringClass - the test class that declared @ContextConfiguration
      locations - the resource locations declared via @ContextConfiguration
      classes - the annotated classes declared via @ContextConfiguration
      inheritLocations - the inheritLocations flag declared via @ContextConfiguration
      initializers - the context initializers declared via @ContextConfiguration
      inheritInitializers - the inheritInitializers flag declared via @ContextConfiguration
      name - the name of level in the context hierarchy, or null if not applicable
      contextLoaderClass - the ContextLoader class declared via @ContextConfiguration
      抛出:
      IllegalArgumentException - if the declaringClass or contextLoaderClass is null
  • 方法详细资料