📄 destructionawarebeanpostprocessor.java
字号:
package org.springframework.beans.factory.config;
import org.springframework.beans.BeansException;
/**
* Subinterface of BeanPostProcessor that adds a before-destruction callback.
*
* <p>The typical usage will be to invoke custom destruction callbacks on
* specific bean types, matching corresponding initialization callbacks.
*
* @author Juergen Hoeller
* @since 09.04.2004
*/
public interface DestructionAwareBeanPostProcessor extends BeanPostProcessor {
/**
* Apply this BeanPostProcessor to the given new bean instance before
* its destruction. Can invoke custom destruction callbacks.
* @param bean the new bean instance
* @param name the name of the bean
* @throws org.springframework.beans.BeansException in case of errors
*/
void postProcessBeforeDestruction(Object bean, String name) throws BeansException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -