advancedSpring Internals — Bean Lifecycle & Proxies
How can a custom FactoryBean accidentally bypass Spring AOP proxy creation?
AOP proxies are normally applied via BeanPostProcessor around the OBJECT a bean definition produces. If a FactoryBean's getObject() constructs and returns its target manually instead of going through the full Spring-managed creation path, the proxy-creation BeanPostProcessors may never get a chance to wrap it.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
How can a custom FactoryBean accidentally bypass Spring AOP proxy creation?