org.springframework.beans.factory.config
Interface DestructionAwareBeanPostProcessor
- All Superinterfaces:
- BeanPostProcessor
- All Known Implementing Classes:
- ActionServletAwareProcessor
- public interface DestructionAwareBeanPostProcessor
- extends BeanPostProcessor
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.
- Since:
- 09.04.2004
- Author:
- Juergen Hoeller
postProcessBeforeDestruction
public void postProcessBeforeDestruction(Object bean,
String name)
throws BeansException
- Apply this BeanPostProcessor to the given new bean instance before
its destruction. Can invoke custom destruction callbacks.
- Parameters:
bean
- the new bean instancename
- the name of the bean
- Throws:
BeansException
- in case of errors
Copyright (C) 2003-2004 The Spring Framework Project.