com.interface21.beans.factory
Interface InitializingBean

All Known Implementing Classes:
DefaultProxyConfig, AbstractJndiLocator, AbstractSlsbInvokerInterceptor, JdbcTemplate, AbstractDataFieldMaxValueIncrementer, RdbmsOperation, HibernateTemplate, LocalSessionFactoryBean, HibernateTransactionManager, JdoTemplate, JdoTransactionManager, LocalPersistenceManagerFactoryBean, RemoteProxyFactoryBean, RmiServiceExporter, DataSourceTransactionManager, ParameterizableViewController, PropertiesMethodNameResolver

public interface InitializingBean

Interface to be implemented by beans that need to react once all their properties have been set by a BeanFactory: for example, to perform initialization, or merely to check that all mandatory properties have been set.

Author:
Rod Johnson

Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied.
 

Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Invoked by a BeanFactory after it has set all bean properties supplied.
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.
Throws:
java.lang.Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails.


Rod Johnson and Spring contributors 2001-2003.