Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » [javadoc | source]
org.springframework.beans.factory
public interface: DisposableBean [javadoc | source]

All Known Implementing Classes:
    SimpleThreadPoolTaskExecutor, SimpleRemoteSlsbInvokerInterceptor, DelegatingFilterProxy, AbstractPoolingTargetSourceCreator, XmlWebApplicationContext, StaticApplicationContext, DisposableBeanAdapter, ScriptFactoryPostProcessor, ServerSessionMessageListenerContainer, ScheduledExecutorFactoryBean, BeanConfigurerSupport, JotmFactoryBean, SimpleHttpServerJaxWsServiceExporter, ObjectFactoryCreatingFactoryBean, SimpleHttpServerFactoryBean, AbstractEntityManagerFactoryBean, LocalPersistenceManagerFactoryBean, EhCacheManagerFactoryBean, ServletContextRequestLoggingFilter, MBeanClientInterceptor, OpenSessionInViewFilter, LazyInitTargetSourceCreator, DefaultContextLoadTimeWeaver, ClassPathXmlApplicationContext, JndiRmiServiceExporter, LocalSessionFactoryBean, GenericMessageEndpointManager, LocalSessionFactoryBean, GenericApplicationContext, AttributesThreadLocalTargetSourceCreator, AbstractRequestLoggingFilter, ServletWrappingController, ConnectorServerFactoryBean, AbstractXmlApplicationContext, AttributesPrototypeTargetSourceCreator, QuickTargetSourceCreator, LocalContainerEntityManagerFactoryBean, MultipartFilter, AnnotationMBeanExporter, MapFactoryBean, SingleConnectionFactory102, AbstractSessionFactoryBean, GenericWebApplicationContext, SimpleMessageListenerContainer, SetFactoryBean, AbstractPollingMessageListenerContainer, ServiceFactoryBean, ScheduledExecutorFactoryBean, DefaultMessageListenerContainer, AbstractBeanFactoryBasedTargetSourceCreator, ResourceAdapterApplicationContext, OpenPersistenceManagerInViewFilter, OpenSessionInViewFilter, AbstractRefreshableWebApplicationContext, OncePerRequestFilter, SingleConnectionFactory, ThreadPoolTaskExecutor, ResourceBundleViewResolver, CharacterEncodingFilter, AbstractFactoryBean, CommonsPoolTargetSource, OpenEntityManagerInViewFilter, DefaultMessageListenerContainer102, FileSystemXmlApplicationContext, AbstractRefreshableConfigApplicationContext, SchedulerFactoryBean, NotificationListenerRegistrar, RmiServiceExporter, AbstractPoolingTargetSource, GenericFilterBean, JmsMessageEndpointManager, StaticPortletApplicationContext, XmlViewResolver, MBeanServerFactoryBean, AbstractMessageListenerContainer, PortletWrappingController, AnnotationSessionFactoryBean, StaticWebApplicationContext, AttributesPoolingTargetSourceCreator, CommonsRequestLoggingFilter, Log4jNestedDiagnosticContextFilter, ResourceAdapterFactoryBean, AbstractApplicationContext, TilesConfigurer, SimpleJaxWsServiceExporter, MBeanExporter, RmiRegistryFactoryBean, ListFactoryBean, MBeanProxyFactoryBean, SimpleRemoteStatelessSessionProxyFactoryBean, ThreadPoolTaskExecutor, AbstractRefreshableApplicationContext, AbstractServiceLoaderBasedFactoryBean, LocalEntityManagerFactoryBean, AbstractRefreshablePortletApplicationContext, AbstractJmsListeningContainer, ServiceListFactoryBean, RequestContextFilter, MBeanServerConnectionFactoryBean, ServiceLoaderFactoryBean, ThreadLocalTargetSource, XmlPortletApplicationContext, AbstractJaxWsServiceExporter, LocalSessionFactoryBean, TimerTaskExecutor, SingleConnectionFactory, CachingConnectionFactory, ServerSessionMessageListenerContainer102, TimerManagerFactoryBean, SingleConnectionDataSource, SimpleMessageListenerContainer102, TimerFactoryBean

Interface to be implemented by beans that want to release resources on destruction. A BeanFactory is supposed to invoke the destroy method if it disposes a cached singleton. An application context is supposed to dispose all of its singletons on close.

An alternative to implementing DisposableBean is specifying a custom destroy-method, for example in an XML bean definition. For a list of all bean lifecycle methods, see the BeanFactory javadocs.

Method from org.springframework.beans.factory.DisposableBean Summary:
destroy
Method from org.springframework.beans.factory.DisposableBean Detail:
 public  void destroy() throws Exception
    Invoked by a BeanFactory on destruction of a singleton.