February 2015
Intermediate to advanced
178 pages
3h 47m
English
We read about the bean's life cycle; why don't we try to examine the life cycle?
Modify the HelloWorld class and implement the following Spring Framework interfaces:
ApplicationContextAware: This will ask you to implement the setApplicationContext methodBeanNameAware: This will tell you to implement the setBeanName methodInitializingBean: This will force you to implement the afterPropertiesSet() methodBeanFactoryAware: This will request you to implement the setBeanFactory methodBeanPostProcessor: This needs you to implement the postProcessBeforeInitialization and postProcessAfterInitialization methodsDisposableBean: This needs to implement the destroy() methodAdd the System.out.println statement in all the implemented ...
Read now
Unlock full access