@ Override public Object postProcessAfterInitialization ( Object bean , String beanName ) throws BeansException { registerObject ( bean ) ; return bean ; }
Automatically registers any container - managed bean with the framework .