类 TestContextGenerationContext
java.lang.Object
cn.taketoday.aot.generate.DefaultGenerationContext
cn.taketoday.test.context.aot.TestContextGenerationContext
- 所有已实现的接口:
cn.taketoday.aot.generate.GenerationContext
class TestContextGenerationContext
extends cn.taketoday.aot.generate.DefaultGenerationContext
Extension of
DefaultGenerationContext with a custom implementation of
withName(String) that is specific to the Infra TestContext Framework.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Harry Yang
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明(专用程序包)TestContextGenerationContext(cn.taketoday.aot.generate.ClassNameGenerator classNameGenerator, cn.taketoday.aot.generate.GeneratedFiles generatedFiles, cn.taketoday.aot.hint.RuntimeHints runtimeHints) Create a newTestContextGenerationContextinstance backed by the specifiedClassNameGenerator,GeneratedFiles, andRuntimeHints.privateTestContextGenerationContext(TestContextGenerationContext existing, String featureName) Create a newTestContextGenerationContextinstance based on the suppliedexistingcontext and feature name. -
方法概要
修饰符和类型方法说明Create a newTestContextGenerationContextinstance using the specified feature name to qualify generated assets for a dedicated round of code generation.从类继承的方法 cn.taketoday.aot.generate.DefaultGenerationContext
getGeneratedClasses, getGeneratedFiles, getRuntimeHints, writeGeneratedContent
-
字段详细资料
-
featureName
-
-
构造器详细资料
-
TestContextGenerationContext
TestContextGenerationContext(cn.taketoday.aot.generate.ClassNameGenerator classNameGenerator, cn.taketoday.aot.generate.GeneratedFiles generatedFiles, cn.taketoday.aot.hint.RuntimeHints runtimeHints) Create a newTestContextGenerationContextinstance backed by the specifiedClassNameGenerator,GeneratedFiles, andRuntimeHints.- 参数:
classNameGenerator- the naming convention to use for generated class namesgeneratedFiles- the generated filesruntimeHints- the runtime hints
-
TestContextGenerationContext
Create a newTestContextGenerationContextinstance based on the suppliedexistingcontext and feature name.- 参数:
existing- the existing context upon which to base the new onefeatureName- the feature name to use
-
-
方法详细资料
-
withName
Create a newTestContextGenerationContextinstance using the specified feature name to qualify generated assets for a dedicated round of code generation.If this
TestContextGenerationContexthas a configured feature name, the existing feature name will prepended to the supplied feature name in order to avoid naming collisions.- 指定者:
withName在接口中cn.taketoday.aot.generate.GenerationContext- 覆盖:
withName在类中cn.taketoday.aot.generate.DefaultGenerationContext- 参数:
featureName- the feature name to use- 返回:
- a specialized
TestContextGenerationContextfor the specified feature name
-