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

All Implemented Interfaces:
    BeanPostProcessor

All Known Implementing Classes:
    ActionServletAwareProcessor, SimplePortletPostProcessor, CommonAnnotationBeanPostProcessor, PersistenceAnnotationBeanPostProcessor, SimpleServletPostProcessor, InitDestroyAnnotationBeanPostProcessor

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.

Method from org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor Summary:
postProcessBeforeDestruction
Method from org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor Detail:
 public  void postProcessBeforeDestruction(Object bean,
    String beanName) throws BeansException
    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).