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.
Rod
- JohnsonMethod from org.springframework.beans.factory.InitializingBean Summary: |
---|
afterPropertiesSet |
Method from org.springframework.beans.factory.InitializingBean Detail: |
---|
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration. |