BeanRegistrationCode implementation with code generation support.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassName | |
| private final BeanRegistrationCodeFragments | |
| private final GeneratedMethods | |
| private final List | |
| private final RegisteredBean | |
| private static final Predicate |
| Access | Constructor and Description |
|---|---|
| pack-priv | BeanRegistrationCodeGenerator(ClassName className, GeneratedMethods generatedMethods, RegisteredBean registeredBean, BeanRegistrationCodeFragments codeFragments)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addInstancePostProcessor(MethodReference
a reference to the post-process method to call.
The referenced method must have a functional signature compatible with
methodReference)InstanceSupplier#andThen.Implements org. |
| pack-priv CodeBlock | |
| public ClassName | getClassName()
Implements org. |
| public GeneratedMethods | getMethods()
Implements org. GeneratedMethods being used by the registrations code.
|
| className | back to summary |
|---|---|
| private final ClassName className | |
| codeFragments | back to summary |
|---|---|
| private final BeanRegistrationCodeFragments codeFragments | |
| generatedMethods | back to summary |
|---|---|
| private final GeneratedMethods generatedMethods | |
| instancePostProcessors | back to summary |
|---|---|
| private final List<MethodReference> instancePostProcessors | |
| registeredBean | back to summary |
|---|---|
| private final RegisteredBean registeredBean | |
| REJECT_ALL_ATTRIBUTES_FILTER | back to summary |
|---|---|
| private static final Predicate<String> REJECT_ALL_ATTRIBUTES_FILTER | |
| BeanRegistrationCodeGenerator | back to summary |
|---|---|
| pack-priv BeanRegistrationCodeGenerator(ClassName className, GeneratedMethods generatedMethods, RegisteredBean registeredBean, BeanRegistrationCodeFragments codeFragments) | |
| addInstancePostProcessor | back to summary |
|---|---|
| public void addInstancePostProcessor(MethodReference methodReference) Implements org. Doc from org. Add an instance post processor method call to the registration code.
| |
| generateCode | back to summary |
|---|---|
| pack-priv CodeBlock generateCode(GenerationContext generationContext) | |
| 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
| |