InitializingBean and DisposableBean, Custom init-method and custom destroy-method

InitializingBean interface has one method afterPropertiesSet() which is called after all the properties of a bean are set. DisposableBean interface has one method destroy() which is called before the bean gets destroyed or before it gets removed from the application context. Let us write a UserService class which implements above interfaces package com.kb.beans;   import […]

Share this article on