类 TestAotProcessor

java.lang.Object
cn.taketoday.context.aot.AbstractAotProcessor<Void>
cn.taketoday.test.context.aot.TestAotProcessor
直接已知子类:
InfraTestAotProcessor

public abstract class TestAotProcessor extends cn.taketoday.context.aot.AbstractAotProcessor<Void>
Filesystem-based ahead-of-time (AOT) processing base implementation that scans the provided classpath roots for Infra integration test classes and then generates AOT artifacts for those test classes in the configured output directories.

Concrete implementations are typically used to kick off optimization of a test suite in a build tool.

从以下版本开始:
4.0
作者:
Sam Brannen, Harry Yang
另请参阅:
  • 嵌套类概要

    从类继承的嵌套类/接口 cn.taketoday.context.aot.AbstractAotProcessor

    cn.taketoday.context.aot.AbstractAotProcessor.Settings
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final Set<Path>
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    TestAotProcessor(Set<Path> classpathRoots, cn.taketoday.context.aot.AbstractAotProcessor.Settings settings)
    Create a new processor for the specified test classpath roots and common settings.
  • 方法概要

    修饰符和类型
    方法
    说明
    protected Void
    Trigger processing of the test classes by clearing output directories first and then performing AOT processing.
    protected Set<Path>
    Get the classpath roots to scan for test classes.
    protected void
    Perform ahead-of-time processing of Infra integration test classes.
    protected Stream<Class<?>>
    Scan the configured classpath roots for Infra integration test classes.

    从类继承的方法 cn.taketoday.context.aot.AbstractAotProcessor

    createFileSystemGeneratedFiles, deleteExistingOutput, getSettings, process, writeHints

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • classpathRoots

      private final Set<Path> classpathRoots
  • 构造器详细资料

    • TestAotProcessor

      protected TestAotProcessor(Set<Path> classpathRoots, cn.taketoday.context.aot.AbstractAotProcessor.Settings settings)
      Create a new processor for the specified test classpath roots and common settings.
      参数:
      classpathRoots - the classpath roots to scan for test classes
      settings - the settings to apply
  • 方法详细资料

    • getClasspathRoots

      protected Set<Path> getClasspathRoots()
      Get the classpath roots to scan for test classes.
    • doProcess

      protected Void doProcess()
      Trigger processing of the test classes by clearing output directories first and then performing AOT processing.
      指定者:
      doProcess 在类中 cn.taketoday.context.aot.AbstractAotProcessor<Void>
    • performAotProcessing

      protected void performAotProcessing()
      Perform ahead-of-time processing of Infra integration test classes.

      Code, resources, and generated classes are stored in the configured output directories. In addition, run-time hints are registered for the application contexts used by the test classes as well as test infrastructure components used by the tests.

      另请参阅:
    • scanClasspathRoots

      protected Stream<Class<?>> scanClasspathRoots()
      Scan the configured classpath roots for Infra integration test classes.
      返回:
      a stream of Infra integration test classes