public interface InitializingBean
BeanFactory: e.g. to perform custom initialization,
or merely to check that all mandatory properties have been set.
An alternative to implementing
InitializingBean is specifying a custom
init method, for example in an XML bean definition. For a list of all bean
lifecycle methods, see the
void afterPropertiesSet() throws java.lang.Exception
BeanFactory after it has set all bean properties
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
java.lang.Exception - in the event of misconfiguration (such as failure to set an
essential property) or if initialization fails for any other reason