当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
InitializingBean (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.beans.factory
Interface InitializingBean
- All Known Implementing Classes:
- AbstractDataFieldMaxValueIncrementer, AbstractFactoryBean, AbstractJasperReportsSingleFormatView, AbstractJasperReportsView, AbstractRemoteSlsbInvokerInterceptor, AbstractRequestLoggingFilter, AbstractSequenceMaxValueIncrementer, AbstractSlsbInvokerInterceptor, AbstractTemplateView, AbstractUrlBasedView, AnnotationSessionFactoryBean, AttributesJmxAttributeSource, AttributesTransactionAttributeSource, BatchSqlUpdate, BurlapClientInterceptor, BurlapProxyFactoryBean, BurlapServiceExporter, CauchoRemoteAccessor, CciDaoSupport, CciLocalTransactionManager, CharacterEncodingFilter, CommonsLogFactoryBean, CommonsRequestLoggingFilter, ConfigurableMimeFileTypeMap, ConnectionSpecConnectionFactoryAdapter, ConnectorServerFactoryBean, CronTriggerBean, DaoSupport, DatabaseStartupValidator, DataSourceTransactionManager, DB2SequenceMaxValueIncrementer, DelegatingConnectionFactory, DelegatingDataSource, DelegatingFilterProxy, EhCacheFactoryBean, EhCacheManagerFactoryBean, EisOperation, EventPublicationInterceptor, FieldRetrievingFactoryBean, FilterDefinitionFactoryBean, FreeMarkerConfigurationFactoryBean, FreeMarkerConfigurer, FreeMarkerView, GenericFilterBean, HessianClientInterceptor, HessianProxyFactoryBean, HessianServiceExporter, HibernateAccessor, HibernateAccessor, HibernateDaoSupport, HibernateDaoSupport, HibernateInterceptor, HibernateInterceptor, HibernateTemplate, HibernateTemplate, HibernateTransactionManager, HibernateTransactionManager, HsqlMaxValueIncrementer, HttpInvokerProxyFactoryBean, HttpInvokerServiceExporter, InternalResourceView, JasperReportsCsvView, JasperReportsHtmlView, JasperReportsMultiFormatView, JasperReportsPdfView, JasperReportsXlsView, JaxRpcPortClientInterceptor, JaxRpcPortProxyFactoryBean, JdbcAccessor, JdbcDaoSupport, JdbcTemplate, JdoAccessor, JdoDaoSupport, JdoInterceptor, JdoTemplate, JdoTransactionManager, JmsAccessor, JmsDestinationAccessor, JmsGatewaySupport, JmsTemplate, JmsTemplate102, JndiObjectFactoryBean, JndiObjectLocator, JndiObjectTargetSource, JndiRmiClientInterceptor, JndiRmiProxyFactoryBean, JndiRmiServiceExporter, JobDetailBean, JstlView, JtaTransactionManager, KeyNamingStrategy, LazyConnectionDataSourceProxy, ListFactoryBean, LocalConnectionFactoryBean, LocalJaxRpcServiceFactoryBean, LocalPersistenceManagerFactoryBean, LocalSessionFactoryBean, LocalSessionFactoryBean, LocalSessionFactoryBean, LocalSlsbInvokerInterceptor, LocalStatelessSessionProxyFactoryBean, Log4jNestedDiagnosticContextFilter, MapFactoryBean, MappingCommAreaOperation, MappingRecordOperation, MappingSqlQuery, MappingSqlQueryWithParameters, MBeanClientInterceptor, MBeanExporter, MBeanProxyFactoryBean, MBeanServerConnectionFactoryBean, MBeanServerFactoryBean, MetadataMBeanInfoAssembler, MethodInvokingFactoryBean, MethodInvokingJobDetailFactoryBean, MethodInvokingRunnable, MethodInvokingTimerTaskFactoryBean, MultipartFilter, MySQLMaxValueIncrementer, ObjectFactoryCreatingFactoryBean, OjbAccessor, OncePerRequestFilter, OpenPersistenceManagerInViewFilter, OpenSessionInViewFilter, OpenSessionInViewFilter, OpenSessionInViewInterceptor, OpenSessionInViewInterceptor, OracleSequenceMaxValueIncrementer, PersistenceBrokerDaoSupport, PersistenceBrokerTemplate, PostgreSQLSequenceMaxValueIncrementer, PreferencesPlaceholderConfigurer, PropertiesFactoryBean, PropertiesMethodNameResolver, RdbmsOperation, RedirectView, ResourceMapFactoryBean, RmiClientInterceptor, RmiProxyFactoryBean, RmiRegistryFactoryBean, RmiServiceExporter, SchedulerFactoryBean, ServiceLocatorFactoryBean, ServletContextRequestLoggingFilter, ServletWrappingController, SetFactoryBean, SimpleRecordOperation, SimpleRemoteSlsbInvokerInterceptor, SimpleRemoteStatelessSessionProxyFactoryBean, SimpleTriggerBean, SingleConnectionFactory, SingleConnectionFactory, SingleConnectionFactory102, SqlCall, SqlFunction, SqlMapClientDaoSupport, SqlMapClientFactoryBean, SqlMapClientTemplate, SqlMapDaoSupport, SqlMapFactoryBean, SqlMapTemplate, SqlOperation, SqlQuery, SqlUpdate, StoredProcedure, TilesConfigurer, TilesJstlView, TilesView, TimerFactoryBean, TopLinkAccessor, TopLinkDaoSupport, TopLinkInterceptor, TopLinkTemplate, TopLinkTransactionManager, TransactionAspectSupport, TransactionAwareConnectionFactoryProxy, TransactionAwareDataSourceProxy, TransactionInterceptor, TransactionProxyFactoryBean, TransactionTemplate, TypeDefinitionBean, UpdatableSqlQuery, UserCredentialsDataSourceAdapter, VelocityConfigurer, VelocityEngineFactoryBean, VelocityLayoutView, VelocityToolboxView, VelocityView, WebLogicJndiMBeanServerFactoryBean, WebLogicJtaTransactionManager, WebLogicMBeanServerFactoryBean
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 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.
- Author:
- Rod Johnson
- See Also:
BeanNameAware
,
BeanFactoryAware
,
BeanFactory
,
AbstractBeanDefinition.getInitMethodName()
,
ApplicationContextAware
Method Summary |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware). |
afterPropertiesSet
void afterPropertiesSet()
throws Exception
- Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
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:
Exception
- in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.
Copyright (c) 2002-2007 The Spring Framework Project.