Package com.ultikits.ultitools.context
Interface BeanPostProcessor
@Internal
public interface BeanPostProcessor
Bean post processor interface to customize bean initialization.
-
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.- Parameters:
bean- the new bean instancebeanName- the name of the bean- Returns:
- the bean instance to use
-
postProcessAfterInitialization
Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks.- Parameters:
bean- the new bean instancebeanName- the name of the bean- Returns:
- the bean instance to use
-