インターフェース InitializingBean

すべての既知の実装クラス:
AbstractCacheManagerAbstractCacheResolverAbstractColumnMaxValueIncrementerAbstractDataFieldMaxValueIncrementerAbstractEntityManagerFactoryBeanAbstractFactoryBeanAbstractHandlerMethodMappingAbstractHandlerMethodMappingAbstractIdentityColumnMaxValueIncrementerAbstractJmsListeningContainerAbstractMessageListenerContainerAbstractMethodMessageHandlerAbstractMethodMessageHandlerAbstractPdfStamperViewAbstractPollingMessageListenerContainerAbstractRefreshableConfigApplicationContextAbstractRefreshableWebApplicationContextAbstractRequestLoggingFilterAbstractRoutingConnectionFactoryAbstractRoutingDataSourceAbstractSequenceMaxValueIncrementerAbstractServiceLoaderBasedFactoryBeanAbstractSingletonProxyFactoryBeanAbstractTemplateViewAbstractTransactionSupportingCacheManagerAbstractUrlBasedViewAbstractUrlBasedViewAbstractXmlApplicationContextAnnotationConfigWebApplicationContextAnnotationMBeanExporterBatchSqlUpdateBeanConfigurerSupportBeanValidationPostProcessorCacheAspectSupportCacheInterceptorCacheProxyFactoryBeanCachingConnectionFactoryCachingDestinationResolverProxyCharacterEncodingFilterClassPathXmlApplicationContextCommonsRequestLoggingFilterCompositeCacheManagerConcurrentMapCacheFactoryBeanConfigurableMimeFileTypeMapConnectionFactoryInitializerConnectorServerFactoryBeanContentNegotiatingViewResolverContentNegotiationManagerFactoryBeanContextLifecycleScheduledTaskRegistrarConversionServiceFactoryBeanCorsFilterCronTriggerFactoryBeanCustomSQLExceptionTranslatorRegistrarCustomValidatorBeanDaoSupportDatabaseStartupValidatorDataSourceInitializerDataSourceTransactionManagerDateTimeFormatterFactoryBeanDb2LuwMaxValueIncrementerDb2MainframeMaxValueIncrementerDefaultManagedAwareThreadFactoryDefaultManagedTaskExecutorDefaultManagedTaskSchedulerDefaultMessageHandlerMethodFactoryDefaultMessageListenerContainerDefaultPersistenceUnitManagerDelegatingConnectionFactoryDelegatingDataSourceDelegatingFilterProxyDerbyMaxValueIncrementerEmbeddedDatabaseFactoryBeanEventPublicationInterceptorExceptionHandlerExceptionResolverExecutorConfigurationSupportFieldRetrievingFactoryBeanFileSystemXmlApplicationContextForkJoinPoolFactoryBeanFormattingConversionServiceFactoryBeanFormContentFilterForwardedHeaderFilterFreeMarkerConfigurationFactoryBeanFreeMarkerConfigurerFreeMarkerConfigurerFreeMarkerViewFreeMarkerViewFreeMarkerViewResolverGenericFilterBeanGenericMessageEndpointManagerGenericSqlQueryGenericStoredProcedureGroovyMarkupConfigurerGroovyMarkupViewGroovyWebApplicationContextGsonFactoryBeanH2SequenceMaxValueIncrementerHanaSequenceMaxValueIncrementerHandlerMappingIntrospectorHibernateDaoSupportHibernateTemplateHibernateTransactionManagerHiddenHttpMethodFilterHsqlMaxValueIncrementerHsqlSequenceMaxValueIncrementerInterfaceBasedMBeanInfoAssemblerInternalResourceViewIsolationLevelDataSourceAdapterIsolationLevelDataSourceRouterJackson2ObjectMapperFactoryBeanJaxb2MarshallerJCacheAspectSupportJCacheCacheManagerJCacheInterceptorJCacheManagerFactoryBeanJdbcAccessorJdbcDaoSupportJdbcTemplateJdbcTransactionManagerJdkHttpClientResourceFactoryJettyClientHttpRequestFactoryJettyResourceFactoryJmsAccessorJmsDestinationAccessorJmsGatewaySupportJmsListenerEndpointRegistrarJmsMessageEndpointManagerJmsMessagingTemplateJmsTemplateJmsTransactionManagerJndiObjectFactoryBeanJndiObjectLocatorJndiObjectTargetSourceJobDetailFactoryBeanJpaTransactionManagerJstlViewJtaTransactionManagerJtaTransactionManagerFactoryBeanKeyNamingStrategyLazyConnectionDataSourceProxyListFactoryBeanLocalConnectionFactoryBeanLocalContainerEntityManagerFactoryBeanLocalEntityManagerFactoryBeanLocalSessionFactoryBeanLocalValidatorFactoryBeanMapFactoryBeanMappingSqlQueryMappingSqlQueryWithParametersMariaDBSequenceMaxValueIncrementerMarshallingMessageConverterMBeanClientInterceptorMBeanExporterMBeanProxyFactoryBeanMBeanServerConnectionFactoryBeanMBeanServerFactoryBeanMessageMappingMessageHandlerMessagingMessageConverterMetadataMBeanInfoAssemblerMetadataNamingStrategyMethodInvokingBeanMethodInvokingFactoryBeanMethodInvokingJobDetailFactoryBeanMethodInvokingRunnableMethodMapTransactionAttributeSourceMethodValidationPostProcessorMultipartFilterMySQLIdentityColumnMaxValueIncrementerMySQLMaxValueIncrementerNamedCacheResolverNamedParameterJdbcDaoSupportNameMatchTransactionAttributeSourceNotificationListenerBeanNotificationListenerRegistrarObjectFactoryCreatingFactoryBeanOncePerRequestFilterOpenEntityManagerInViewFilterOpenSessionInterceptorOpenSessionInViewFilterOptionalValidatorFactoryBeanOracleSequenceMaxValueIncrementerPersistenceExceptionTranslationInterceptorPostgresSequenceMaxValueIncrementerPreferencesPlaceholderConfigurerPropertiesFactoryBeanProviderCreatingFactoryBeanProxyFactoryBeanR2dbcTransactionManagerRdbmsOperationReactorNetty2ResourceFactoryReactorResourceFactoryReactorResourceFactoryRedirectViewRedirectViewRelativeRedirectFilterRequestContextFilterRequestMappingHandlerAdapterRequestMappingHandlerAdapterRequestMappingHandlerMappingRequestMappingHandlerMappingRequestMappingInfoHandlerMappingRequestMappingInfoHandlerMappingResourceAdapterFactoryBeanResourceBundleViewResolverResourceHttpRequestHandlerResourceUrlEncodingFilterResourceWebHandlerRouterFunctionMappingRouterFunctionMappingRSocketMessageHandlerScheduledExecutorFactoryBeanScheduledTaskRegistrarSchedulerAccessorBeanSchedulerFactoryBeanScriptTemplateViewScriptTemplateViewScriptTemplateViewResolverServerEndpointExporterServerHttpObservationFilterServerResponseResultHandlerServiceFactoryBeanServiceListFactoryBeanServiceLoaderFactoryBeanServiceLocatorFactoryBeanServletContextRequestLoggingFilterServletServerContainerFactoryBeanServletWrappingControllerSetFactoryBeanShallowEtagHeaderFilterShardingKeyDataSourceAdapterSharedEntityManagerBeanSimpAnnotationMethodMessageHandlerSimpleCacheManagerSimpleCacheResolverSimpleExceptionCacheResolverSimpleMessageListenerContainerSimpleThreadPoolTaskExecutorSimpleTriggerFactoryBeanSingleConnectionFactorySortedResourcesFactoryBeanSqlCallSqlFunctionSqlOperationSqlQuerySqlServerMaxValueIncrementerSqlServerSequenceMaxValueIncrementerSqlUpdateStoredProcedureSybaseAnywhereMaxValueIncrementerSybaseMaxValueIncrementerTaskExecutorFactoryBeanThreadPoolExecutorFactoryBeanThreadPoolTaskExecutorThreadPoolTaskSchedulerTransactionAspectSupportTransactionAwareCacheManagerProxyTransactionAwareDataSourceProxyTransactionInterceptorTransactionProxyFactoryBeanTransactionTemplateUpdatableSqlQueryUrlBasedViewResolverUrlHandlerFilterUserCredentialsConnectionFactoryAdapterUserCredentialsDataSourceAdapterViewResolverCompositeWebSocketAnnotationMethodMessageHandlerXmlViewResolverXmlWebApplicationContextXsltViewXStreamMarshallerYamlMapFactoryBeanYamlPropertiesFactoryBean

public interface InitializingBean
すべてのプロパティが BeanFactory によって設定された後に反応する必要がある Bean によって実装されるインターフェース。たとえば、カスタム初期化を実行したり、すべての必須プロパティが設定されていることを単に確認したりします。

InitializingBean を実装する代わりに、たとえば XML Bean 定義でカスタムの init メソッドを指定します。すべての Bean ライフサイクルメソッドのリストについては、BeanFactory javadoc を参照してください。

作成者:
Rod Johnson, Juergen Hoeller
関連事項:
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    すべての Bean プロパティを設定し、BeanFactoryAwareApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。
  • メソッドの詳細

    • afterPropertiesSet

      void afterPropertiesSet() throws ExceptionSE
      すべての Bean プロパティを設定し、BeanFactoryAwareApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。

      このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。

      例外:
      ExceptionSE - 構成の誤り(必須プロパティの設定の失敗など)の場合、またはその他の理由で初期化が失敗した場合