public interface

DestructionAwareBeanPostProcessor

implements BeanPostProcessor
org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
Known Indirect Subclasses

Class Overview

Subinterface of BeanPostProcessor that adds a before-destruction callback.

The typical usage will be to invoke custom destruction callbacks on specific bean types, matching corresponding initialization callbacks.

Summary

Public Methods
abstract void postProcessBeforeDestruction(Object bean, String beanName)
Apply this BeanPostProcessor to the given bean instance before its destruction.
[Expand]
Inherited Methods
From interface org.springframework.beans.factory.config.BeanPostProcessor

Public Methods

public abstract void postProcessBeforeDestruction (Object bean, String beanName)

Also: SpringBeans

Apply this BeanPostProcessor to the given bean instance before its destruction. Can invoke custom destruction callbacks.

Like DisposableBean's destroy and a custom destroy method, this callback just applies to singleton beans in the factory (including inner beans).

Parameters
bean the bean instance to be destroyed
beanName the name of the bean
Throws
BeansException in case of errors