インターフェースの使用
org.springframework.aot.generate.GenerationContext
GenerationContext を使用するパッケージ
パッケージ
説明
実行時の動作と同等の生成されたコードを提供するコンポーネントのサポートクラス。
コア AOT クラスのサポートをテストします。
Bean ファクトリの AOT サポート。
アプリケーションコンテキストの AOT サポート。
org.springframework.aot.generate 内の GenerationContext 使用
GenerationContext を実装している org.springframework.aot.generate のクラスorg.springframework.aot.test.generate 内の GenerationContext 使用
GenerationContext を実装している org.springframework.aot.test.generate のクラス修飾子と型クラス説明classorg.springframework.beans.factory.aot 内の GenerationContext 使用
型 GenerationContext のパラメーターを持つ org.springframework.beans.factory.aot のメソッド修飾子と型メソッド説明voidBeanFactoryInitializationAotContribution.applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) このコントリビューションを指定されたBeanFactoryInitializationCodeに適用します。voidBeanRegistrationAotContribution.applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) このコントリビューションを指定されたBeanRegistrationCodeに適用します。default BeanRegistrationCodeFragmentsBeanRegistrationAotContribution.customizeBeanRegistrationCodeFragments(GenerationContext generationContext, BeanRegistrationCodeFragments codeFragments) Bean 登録コードの生成に使用されるBeanRegistrationCodeFragmentsをカスタマイズします。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, boolean allowDirectSupplierShortcut) インスタンスサプライヤーコードを生成します。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, boolean allowDirectSupplierShortcut) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) 新しい Bean 定義インスタンスを定義するコードを生成します。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateReturnCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) return ステートメントを生成します。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateReturnCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateSetBeanDefinitionPropertiesCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, PredicateSE<StringSE> attributeFilter) Bean 定義のプロパティを設定するコードを生成します。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateSetBeanDefinitionPropertiesCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, PredicateSE<StringSE> attributeFilter) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateSetBeanInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, ListSE<MethodReference> postProcessors) Bean 定義でインスタンスサプライヤーを設定するコードを生成します。org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateSetBeanInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, ListSE<MethodReference> postProcessors) 型 GenerationContext のパラメーターを持つ org.springframework.beans.factory.aot のコンストラクター修飾子コンストラクター説明InstanceSupplierCodeGenerator(GenerationContext generationContext, org.springframework.javapoet.ClassName className, GeneratedMethods generatedMethods, boolean allowDirectSupplierShortcut) 新しいジェネレーターインスタンスを作成します。org.springframework.context.aot 内の GenerationContext 使用
型 GenerationContext のパラメーターを持つ org.springframework.context.aot のメソッド修飾子と型メソッド説明org.springframework.javapoet.ClassNameApplicationContextAotGenerator.processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) 指定されたGenerationContextを使用して、指定されたGenericApplicationContextを事前に処理します。