VMware vRealize Automation 8.x (2022) — Question 53
Which two statements are true concerning the BeanPostProcessor Extension point? (Choose two.)
Answer options
- A. BeanPostProcessors are called before the dependencies have been injected.
- B. Custom BeanPostProcessrs can be implemented for Spring applications.
- C. BeanPostProcessors are called before the BeanFactoryPostProcessors.
- D. BeanPostProcessors are called during the initialization phase of a bean life cycle.
- E. BeanPostProcessors cannot be ordered in a Spring Boot application.
Correct answer: B, D
Explanation
The correct answers are B and D because custom BeanPostProcessors are indeed implementable for Spring applications, and they are called during the initialization phase of a bean's life cycle. Option A is incorrect because BeanPostProcessors are executed after dependencies are injected, while C is wrong as BeanPostProcessors run after BeanFactoryPostProcessors. Option E is false because BeanPostProcessors can be ordered in a Spring Boot application.