Uses of Class
org.springframework.aot.generator.GeneratedType
Packages that use GeneratedType
Package
Description
Support classes for components that contribute generated code equivalent
to a runtime behavior.
-
Uses of GeneratedType in org.springframework.aot.generator
Methods in org.springframework.aot.generator that return GeneratedTypeModifier and TypeMethodDescriptionGeneratedType.customizeType
(Consumer<org.springframework.javapoet.TypeSpec.Builder> type) Customize the type of this instance.DefaultGeneratedTypeContext.getGeneratedType
(String packageName) GeneratedTypeContext.getGeneratedType
(String packageName) Return aGeneratedType
for the specified package.DefaultGeneratedTypeContext.getMainGeneratedType()
GeneratedTypeContext.getMainGeneratedType()
Return the mainGeneratedType
.static GeneratedType
GeneratedType.of
(org.springframework.javapoet.ClassName className) Create an instance for the specifiedClassName
, as apublic
type.static GeneratedType
GeneratedType.of
(org.springframework.javapoet.ClassName className, Consumer<org.springframework.javapoet.TypeSpec.Builder> type) Create an instance for the specifiedClassName
, customizing the type with the specifiedconsumer callback
.Constructor parameters in org.springframework.aot.generator with type arguments of type GeneratedTypeModifierConstructorDescriptionDefaultGeneratedTypeContext
(String packageName, Function<String, GeneratedType> generatedTypeFactory) Create a context targeting the specified package name and using the specified factory to create aGeneratedType
per requested package name.