BeanDefinition to be registered.
BeanDefinitionMethodGeneratorFactory
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final String | |
| private final BeanDefinitionMethodGeneratorFactory | |
| private final RegisteredBean |
| Access | Constructor and Description |
|---|---|
| pack-priv | BeanDefinitionMethodGenerator(BeanDefinitionMethodGeneratorFactory
the method generator factory methodGeneratorFactory, RegisteredBean the registered bean registeredBean, String the current property name currentPropertyName, List<BeanRegistrationAotContribution> the AOT contributions aotContributions)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| private static GeneratedClass | |
| pack-priv MethodReference | Returns: a reference to the generated method.the generation context generationContext, BeanRegistrationsCode the bean registrations code beanRegistrationsCode)Generate the method that returns the |
| private GeneratedMethod | generateBeanDefinitionMethod(GenerationContext generationContext, ClassName className, GeneratedMethods generatedMethods, BeanRegistrationCodeFragments codeFragments, Modifier modifier)
|
| private BeanRegistrationCodeFragments | |
| private String | |
| private String | |
| private boolean | Returns: true if generated code in that package is allowedthe target to check target)Specify if the |
| private static GeneratedClass | Returns: the generated class to usethe generation context to use generationContext, ClassName the chosen target class name for the bean definition target)Return the |
| aotContributions | back to summary |
|---|---|
| private final List<BeanRegistrationAotContribution> aotContributions | |
| currentPropertyName | back to summary |
|---|---|
| private final String currentPropertyName
| |
| methodGeneratorFactory | back to summary |
|---|---|
| private final BeanDefinitionMethodGeneratorFactory methodGeneratorFactory | |
| registeredBean | back to summary |
|---|---|
| private final RegisteredBean registeredBean | |
| BeanDefinitionMethodGenerator | back to summary |
|---|---|
| pack-priv BeanDefinitionMethodGenerator(BeanDefinitionMethodGeneratorFactory methodGeneratorFactory, RegisteredBean registeredBean, String currentPropertyName, List<BeanRegistrationAotContribution> aotContributions) Create a new
| |
| createInnerClass | back to summary |
|---|---|
| private static GeneratedClass createInnerClass(GeneratedClass generatedClass, String name, ClassName target) | |
| generateBeanDefinitionMethod | back to summary |
|---|---|
| pack-priv MethodReference generateBeanDefinitionMethod(GenerationContext generationContext, BeanRegistrationsCode beanRegistrationsCode) Generate the method that returns the
| |
| generateBeanDefinitionMethod | back to summary |
|---|---|
| private GeneratedMethod generateBeanDefinitionMethod(GenerationContext generationContext, ClassName className, GeneratedMethods generatedMethods, BeanRegistrationCodeFragments codeFragments, Modifier modifier) | |
| getCodeFragments | back to summary |
|---|---|
| private BeanRegistrationCodeFragments getCodeFragments(GenerationContext generationContext, BeanRegistrationsCode beanRegistrationsCode) | |
| getName | back to summary |
|---|---|
| private String getName() | |
| getSimpleBeanName | back to summary |
|---|---|
| private String getSimpleBeanName(String beanName) | |
| isWritablePackageName | back to summary |
|---|---|
| private boolean isWritablePackageName(ClassName target) Specify if the
| |
| lookupGeneratedClass | back to summary |
|---|---|
| private static GeneratedClass lookupGeneratedClass(GenerationContext generationContext, ClassName target) Return the If the target class is an inner class, a corresponding inner class in the original structure is created.
| |