File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Spring_part_2/src/main/java/spring/oldboy/bean_post_processor Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ package spring .oldboy .bean_post_processor ;
2+
3+ import java .lang .annotation .ElementType ;
4+ import java .lang .annotation .Retention ;
5+ import java .lang .annotation .RetentionPolicy ;
6+ import java .lang .annotation .Target ;
7+
8+ /*
9+ Поскольку наша аннотация нужна будет в RunTime, то RetentionPolicy.RUNTIME,
10+ т.к. по умолчанию RetentionPolicy.CLASS. Аннотация @Target указывает над чем
11+ будет использоваться наша аннотация - над классом (TYPE).
12+ */
13+ @ Retention (RetentionPolicy .RUNTIME )
14+ @ Target (ElementType .TYPE )
15+ public @interface DropBeanBeforeInit {
16+ /*
17+ Суть данной аннотации показать, что может быть
18+ при внедрении подмены до этапа инициализации bean-a
19+ */
20+ }
You can’t perform that action at this time.
0 commit comments