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 {
19
19
private final static Logger LOGGER = LoggerFactory .getLogger (SpringLifeCycleProcessor .class );
20
20
@ Override
21
21
public Object postProcessBeforeInitialization (Object bean , String beanName ) throws BeansException {
22
+ if ("annotationBean" .equals (beanName )){
23
+ LOGGER .info ("SpringLifeCycleProcessor start beanName={}" ,beanName );
24
+ }
22
25
return bean ;
23
26
}
24
27
25
28
@ Override
26
29
public Object postProcessAfterInitialization (Object bean , String beanName ) throws BeansException {
30
+ if ("annotationBean" .equals (beanName )){
31
+ LOGGER .info ("SpringLifeCycleProcessor end beanName={}" ,beanName );
32
+ }
27
33
return bean ;
28
34
}
29
35
}
You can’t perform that action at this time.
0 commit comments