Package com.ultikits.ultitools.context
Interface BeanPostProcessor
- All Known Implementing Classes:
AopProxyBeanPostProcessor
public interface BeanPostProcessor
Bean post processor interface to customize bean initialization.
Bean后处理器接口,用于自定义Bean初始化。
Bean后处理器接口,用于自定义Bean初始化。
-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectpostProcessAfterInitialization(Object bean, String beanName) Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks.default ObjectpostProcessBeforeInitialization(Object bean, String beanName) Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks.
-
Method Details
-
postProcessBeforeInitialization
Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks.
在任何Bean初始化回调之前,将此BeanPostProcessor应用于给定的新Bean实例。- Parameters:
bean- the new bean instance
新的Bean实例beanName- the name of the bean
Bean的名称- Returns:
- the bean instance to use
要使用的Bean实例
-
postProcessAfterInitialization
Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks.
在任何Bean初始化回调之后,将此BeanPostProcessor应用于给定的新Bean实例。- Parameters:
bean- the new bean instance
新的Bean实例beanName- the name of the bean
Bean的名称- Returns:
- the bean instance to use
要使用的Bean实例
-