org.springframework.beans.factory

Interface InitializingBean

    • Method Detail

      • afterPropertiesSet

        void afterPropertiesSet()
                         throws java.lang.Exception
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Throws:
        java.lang.Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason