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 BeanFactory javadocs.
DisposableBean, org.springframework.beans.factory.config.BeanDefinition#getPropertyValues() , org.springframework.beans.factory.support.AbstractBeanDefinition#getInitMethodName()
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() throws Exception Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |