File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/crossoverjie/spring/processor Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,17 @@ public class SpringLifeCycleProcessor implements BeanPostProcessor {
1919 private final static Logger LOGGER = LoggerFactory .getLogger (SpringLifeCycleProcessor .class );
2020 @ Override
2121 public Object postProcessBeforeInitialization (Object bean , String beanName ) throws BeansException {
22+ if ("annotationBean" .equals (beanName )){
23+ LOGGER .info ("SpringLifeCycleProcessor start beanName={}" ,beanName );
24+ }
2225 return bean ;
2326 }
2427
2528 @ Override
2629 public Object postProcessAfterInitialization (Object bean , String beanName ) throws BeansException {
30+ if ("annotationBean" .equals (beanName )){
31+ LOGGER .info ("SpringLifeCycleProcessor end beanName={}" ,beanName );
32+ }
2733 return bean ;
2834 }
2935}
You can’t perform that action at this time.
0 commit comments