BeanRegistrationsAotProcessor used to
register bean definitions and aliases.
BeanRegistrationsAotProcessor
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | BeanRegistrationsAotContribution.BeanRegistrationsCodeGenerator
|
| pack-priv static record | BeanRegistrationsAotContribution.Registration
Gather the necessary information to register a particular bean. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyTo(GenerationContext
the active generation context generationContext, BeanFactoryInitializationCode the bean factory initialization code beanFactoryInitializationCode)Implements org. BeanFactoryInitializationCode.
|
| private void | |
| private void | generateRegisterBeanDefinitionsMethod(MethodSpec.
|
| private void | generateRegisterHints(RuntimeHints runtimeHints, Map<BeanRegistrationKey, BeanRegistrationsAotContribution.
|
| private void |
| BEAN_FACTORY_PARAMETER_NAME | back to summary |
|---|---|
| private static final String BEAN_FACTORY_PARAMETER_NAME | |
| registrations | back to summary |
|---|---|
| private final Map<BeanRegistrationKey, BeanRegistrationsAotContribution. | |
| BeanRegistrationsAotContribution | back to summary |
|---|---|
| pack-priv BeanRegistrationsAotContribution(Map<BeanRegistrationKey, BeanRegistrationsAotContribution. | |
| applyTo | back to summary |
|---|---|
| public void applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) Implements org. Doc from org. Apply this contribution to the given
| |
| generateRegisterAliasesMethod | back to summary |
|---|---|
| private void generateRegisterAliasesMethod(MethodSpec. | |
| generateRegisterBeanDefinitionsMethod | back to summary |
|---|---|
| private void generateRegisterBeanDefinitionsMethod(MethodSpec. | |
| generateRegisterHints | back to summary |
|---|---|
| private void generateRegisterHints(RuntimeHints runtimeHints, Map<BeanRegistrationKey, BeanRegistrationsAotContribution. | |
| introspectPublicMethodsOnAllInterfaces | back to summary |
|---|---|
| private void introspectPublicMethodsOnAllInterfaces(ReflectionHints hints, Class<?> type) | |
BeanRegistrationsCode with generation support.
| Modifier and Type | Field and Description |
|---|---|
| private final GeneratedClass |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassName | getClassName()
Implements org. |
| public GeneratedMethods | getMethods()
Implements org. GeneratedMethods being used by the registrations code.
|
| generatedClass | back to summary |
|---|---|
| private final GeneratedClass generatedClass | |
| BeanRegistrationsCodeGenerator | back to summary |
|---|---|
| public BeanRegistrationsCodeGenerator(GeneratedClass generatedClass) | |
| getClassName | back to summary |
|---|---|
| public ClassName getClassName() Implements org. Doc from org. Return the name of the class being used for registrations. | |
| getMethods | back to summary |
|---|---|
| public GeneratedMethods getMethods() Implements org. Doc from org. Return a
| |
BeanDefinitionMethodGenerator to use
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private final BeanDefinitionMethodGenerator | methodGenerator
Record Component accessed by methodGenerator(). theBeanDefinitionMethodGenerator to use
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. |
| public final int | |
| public BeanDefinitionMethodGenerator | methodGenerator()
Record Component getter of methodGenerator.
Record Component
the |
| public final String | toString()
Implements abstract java. |
| aliases | back to summary |
|---|---|
| private final String[] aliases Record Component accessed by aliases(). the bean aliases, if any | |
| methodGenerator | back to summary |
|---|---|
| private final BeanDefinitionMethodGenerator methodGenerator Record Component accessed by methodGenerator(). the | |
| Registration | back to summary |
|---|---|
| pack-priv Registration(BeanDefinitionMethodGenerator methodGenerator, String[] aliases) | |
| aliases | back to summary |
|---|---|
| public String[] aliases() Record Component getter of aliases.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| methodGenerator | back to summary |
|---|---|
| public BeanDefinitionMethodGenerator methodGenerator() Record Component getter of methodGenerator.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |