| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private BeanDefinition | |
| private String | |
| public BeanRegistrationAotContribution | processAheadOfTime(RegisteredBean
the registered bean to process registeredBean)Implements org. Process the given |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| ScopedProxyBeanRegistrationAotProcessor | back to summary |
|---|---|
| pack-priv ScopedProxyBeanRegistrationAotProcessor() | |
| getTargetBeanDefinition | back to summary |
|---|---|
private BeanDefinition getTargetBeanDefinition(ConfigurableBeanFactory beanFactory, String targetBeanName)
| |
| getTargetBeanName | back to summary |
|---|---|
private String getTargetBeanName(BeanDefinition beanDefinition)
| |
| processAheadOfTime | back to summary |
|---|---|
| public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean) Implements org. Doc from org. Process the given Processors are free to use any techniques they like to analyze the given instance. Most typically use reflection to find fields or methods to use in the contribution. Contributions typically generate source code or resource files that can be used when the AOT optimized application runs.
If the given instance isn't relevant to the processor, it should return a
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final RegisteredBean | |
| private final BeanDefinition | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | ScopedProxyBeanRegistrationCodeFragments(BeanRegistrationCodeFragments delegate, RegisteredBean registeredBean, String targetBeanName, BeanDefinition targetBeanDefinition)
|
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | generateInstanceSupplierCode(GenerationContext
the generation context generationContext, BeanRegistrationCode the bean registration code beanRegistrationCode, boolean if direct suppliers may be used rather
than always needing an allowDirectSupplierShortcut)
InstanceSupplierImplements org. Generate the instance supplier code. |
| public CodeBlock | generateNewBeanDefinitionCode(GenerationContext
the generation context generationContext, ResolvableType the bean type beanType, BeanRegistrationCode the bean registration code beanRegistrationCode)
Implements org. Generate the code that defines the new bean definition instance. |
| public CodeBlock | generateSetBeanDefinitionPropertiesCode(GenerationContext
the generation context generationContext, BeanRegistrationCode the bean registration code beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> any attribute filtering that should be applied attributeFilter)
Implements org. Generate the code that sets the properties of the bean definition. |
| public ClassName | getTarget(RegisteredBean
the registered bean registeredBean)Overrides org. Implements org. Return the target for the registration. |
| REGISTERED_BEAN_PARAMETER_NAME | back to summary |
|---|---|
| private static final String REGISTERED_BEAN_PARAMETER_NAME | |
| registeredBean | back to summary |
|---|---|
| private final RegisteredBean registeredBean | |
| targetBeanDefinition | back to summary |
|---|---|
| private final BeanDefinition targetBeanDefinition | |
| targetBeanName | back to summary |
|---|---|
| private final String targetBeanName | |
| ScopedProxyBeanRegistrationCodeFragments | back to summary |
|---|---|
| pack-priv ScopedProxyBeanRegistrationCodeFragments(BeanRegistrationCodeFragments delegate, RegisteredBean registeredBean, String targetBeanName, BeanDefinition targetBeanDefinition) | |
| generateInstanceSupplierCode | back to summary |
|---|---|
| public CodeBlock generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, boolean allowDirectSupplierShortcut) Implements org. Doc from org. Generate the instance supplier code.
| |
| generateNewBeanDefinitionCode | back to summary |
|---|---|
| public CodeBlock generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) Implements org. Doc from org. Generate the code that defines the new bean definition instance. This should declare a variable named beanDefinition so that further fragments can refer to the variable to further tune the bean definition.
| |
| generateSetBeanDefinitionPropertiesCode | back to summary |
|---|---|
| public CodeBlock generateSetBeanDefinitionPropertiesCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter) Implements org. Generate the code that sets the properties of the bean definition.
| |
| getTarget | back to summary |
|---|---|
| public ClassName getTarget(RegisteredBean registeredBean) Overrides org. Implements org. Doc from org. Return the target for the registration. Used to determine where to write the code. This should take into account visibility issue, such as package access of an element of the bean to register.
| |