What is the role of BeanPostProcessor in the Spring container lifecycle?
-
A
It validates bean configurations before startup
-
B
It intercepts beans before and after initialization to apply custom logic
-
C
It registers beans dynamically at runtime
-
D
It disposes of beans when the context closes