| Modifier and Type | Class and Description |
|---|---|
| private static class | PostProcessorRegistrationDelegate.BeanPostProcessorChecker
BeanPostProcessor that logs an info message when a bean is created during BeanPostProcessor instantiation, i.e. when a bean is not eligible for getting processed by all BeanPostProcessors. |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | invokeBeanDefinitionRegistryPostProcessors(Collection<? extends BeanDefinitionRegistryPostProcessor> postProcessors, BeanDefinitionRegistry registry, ApplicationStartup applicationStartup)
Invoke the given BeanDefinitionRegistryPostProcessor beans. |
| public static void | invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory, List<BeanFactoryPostProcessor> beanFactoryPostProcessors)
|
| private static void | invokeBeanFactoryPostProcessors(Collection<? extends BeanFactoryPostProcessor> postProcessors, ConfigurableListableBeanFactory beanFactory)
Invoke the given BeanFactoryPostProcessor beans. |
| pack-priv static void | invokeMergedBeanDefinitionPostProcessors(DefaultListableBeanFactory
the bean factory to use beanFactory)Selectively invoke |
| pack-priv static < the post-processor type T extends BeanPostProcessor> List | Returns: a list of sorted post-processors for the specified typethe bean factory to use beanFactory, Class<T> the post-processor type beanPostProcessorType)Load and sort the post-processors of the specified type. |
| public static void | registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory, AbstractApplicationContext applicationContext)
|
| private static void | registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory, List<? extends BeanPostProcessor> postProcessors)
Register the given BeanPostProcessor beans. |
| private static void |
| PostProcessorRegistrationDelegate | back to summary |
|---|---|
| private PostProcessorRegistrationDelegate() | |
| invokeBeanDefinitionRegistryPostProcessors | back to summary |
|---|---|
| private static void invokeBeanDefinitionRegistryPostProcessors(Collection<? extends BeanDefinitionRegistryPostProcessor> postProcessors, BeanDefinitionRegistry registry, ApplicationStartup applicationStartup) Invoke the given BeanDefinitionRegistryPostProcessor beans. | |
| invokeBeanFactoryPostProcessors | back to summary |
|---|---|
| public static void invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory, List<BeanFactoryPostProcessor> beanFactoryPostProcessors) | |
| invokeBeanFactoryPostProcessors | back to summary |
|---|---|
| private static void invokeBeanFactoryPostProcessors(Collection<? extends BeanFactoryPostProcessor> postProcessors, ConfigurableListableBeanFactory beanFactory) Invoke the given BeanFactoryPostProcessor beans. | |
| invokeMergedBeanDefinitionPostProcessors | back to summary |
|---|---|
| pack-priv static void invokeMergedBeanDefinitionPostProcessors(DefaultListableBeanFactory beanFactory) Selectively invoke
| |
| loadBeanPostProcessors | back to summary |
|---|---|
| pack-priv static <T extends BeanPostProcessor> List Load and sort the post-processors of the specified type.
| |
| registerBeanPostProcessors | back to summary |
|---|---|
| public static void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory, AbstractApplicationContext applicationContext) | |
| registerBeanPostProcessors | back to summary |
|---|---|
| private static void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory, List<? extends BeanPostProcessor> postProcessors) Register the given BeanPostProcessor beans. | |
| sortPostProcessors | back to summary |
|---|---|
| private static void sortPostProcessors(List<?> postProcessors, ConfigurableListableBeanFactory beanFactory) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurableListableBeanFactory | |
| private final int | |
| private static final Log | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| public | BeanPostProcessorChecker(ConfigurableListableBeanFactory beanFactory, String[] postProcessorNames, int beanPostProcessorTargetCount)
|
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public Object | postProcessAfterInitialization(Object
the new bean instance bean, String the name of the bean beanName)Overrides default org. BeanPostProcessor to the given new bean instance after any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method).
|
| public Object | postProcessBeforeInitialization(Object
the new bean instance bean, String the name of the bean beanName)Overrides default org. BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method).
|
| beanFactory | back to summary |
|---|---|
| private final ConfigurableListableBeanFactory beanFactory | |
| beanPostProcessorTargetCount | back to summary |
|---|---|
| private final int beanPostProcessorTargetCount | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| postProcessorNames | back to summary |
|---|---|
| private final String[] postProcessorNames | |
| BeanPostProcessorChecker | back to summary |
|---|---|
| public BeanPostProcessorChecker(ConfigurableListableBeanFactory beanFactory, String[] postProcessorNames, int beanPostProcessorTargetCount) | |
| isInfrastructureBean | back to summary |
|---|---|
| private boolean isInfrastructureBean(String beanName) | |
| postProcessAfterInitialization | back to summary |
|---|---|
| public Object postProcessAfterInitialization(Object bean, String beanName) Overrides default org. Doc from org. Apply this In case of a FactoryBean, this callback will be invoked for both the FactoryBean
instance and the objects created by the FactoryBean (as of Spring 2.0). The
post-processor can decide whether to apply to either the FactoryBean or created
objects or both through corresponding This callback will also be invoked after a short-circuiting triggered by a
The default implementation returns the given | |
| postProcessBeforeInitialization | back to summary |
|---|---|
| public Object postProcessBeforeInitialization(Object bean, String beanName) Overrides default org. Doc from org. Apply this The default implementation returns the given | |
| Modifier and Type | Field and Description |
|---|---|
| private final DefaultListableBeanFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | postProcessRootBeanDefinition(List<MergedBeanDefinitionPostProcessor> postProcessors, String beanName, Class<?> beanType, RootBeanDefinition bd)
|
| private void | postProcessValue(List<MergedBeanDefinitionPostProcessor> postProcessors, BeanDefinitionValueResolver valueResolver, Object value)
|
| private Class | |
| private void | resolveInnerBeanDefinition(BeanDefinitionValueResolver valueResolver, BeanDefinition innerBeanDefinition, BiConsumer<String, RootBeanDefinition> resolver)
|
| private void |
| beanFactory | back to summary |
|---|---|
| private final DefaultListableBeanFactory beanFactory | |
| MergedBeanDefinitionPostProcessorInvoker | back to summary |
|---|---|
| private MergedBeanDefinitionPostProcessorInvoker(DefaultListableBeanFactory beanFactory) | |
| invokeMergedBeanDefinitionPostProcessors | back to summary |
|---|---|
| private void invokeMergedBeanDefinitionPostProcessors() | |
| postProcessRootBeanDefinition | back to summary |
|---|---|
| private void postProcessRootBeanDefinition(List<MergedBeanDefinitionPostProcessor> postProcessors, String beanName, Class<?> beanType, RootBeanDefinition bd) | |
| postProcessValue | back to summary |
|---|---|
| private void postProcessValue(List<MergedBeanDefinitionPostProcessor> postProcessors, BeanDefinitionValueResolver valueResolver, Object value) | |
| resolveBeanType | back to summary |
|---|---|
| private Class | |
| resolveInnerBeanDefinition | back to summary |
|---|---|
| private void resolveInnerBeanDefinition(BeanDefinitionValueResolver valueResolver, BeanDefinition innerBeanDefinition, BiConsumer<String, RootBeanDefinition> resolver) | |
| resolveTypeStringValue | back to summary |
|---|---|
| private void resolveTypeStringValue(TypedStringValue typedStringValue) | |