File tree 2 files changed +4
-4
lines changed
inject/src/main/java/io/avaje/inject
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
import static java .lang .annotation .ElementType .ANNOTATION_TYPE ;
4
4
import static java .lang .annotation .ElementType .METHOD ;
5
5
import static java .lang .annotation .ElementType .TYPE ;
6
+ import static java .lang .annotation .RetentionPolicy .CLASS ;
6
7
import static java .lang .annotation .RetentionPolicy .RUNTIME ;
7
- import static java .lang .annotation .RetentionPolicy .SOURCE ;
8
8
9
9
import java .lang .annotation .Repeatable ;
10
10
import java .lang .annotation .Retention ;
30
30
* <p>In the sample above the MyService bean will get wired only if a bean of type {@code
31
31
* OtherService} is already registered in the {@link BeanScope}.
32
32
*/
33
- @ Retention (SOURCE )
33
+ @ Retention (CLASS )
34
34
@ Repeatable (RequiresBean .Container .class )
35
35
@ Target ({TYPE , METHOD , ANNOTATION_TYPE })
36
36
public @interface RequiresBean {
Original file line number Diff line number Diff line change 3
3
import static java .lang .annotation .ElementType .ANNOTATION_TYPE ;
4
4
import static java .lang .annotation .ElementType .METHOD ;
5
5
import static java .lang .annotation .ElementType .TYPE ;
6
+ import static java .lang .annotation .RetentionPolicy .CLASS ;
6
7
import static java .lang .annotation .RetentionPolicy .RUNTIME ;
7
- import static java .lang .annotation .RetentionPolicy .SOURCE ;
8
8
9
9
import java .lang .annotation .Repeatable ;
10
10
import java .lang .annotation .Retention ;
40
40
* If no ConfigPropertyPlugin is found then the default implementation is used which uses
41
41
* {@link System#getProperty(String)} and {@link System#getenv(String)}.
42
42
*/
43
- @ Retention (SOURCE )
43
+ @ Retention (CLASS )
44
44
@ Repeatable (RequiresProperty .Container .class )
45
45
@ Target ({TYPE , METHOD , ANNOTATION_TYPE })
46
46
public @interface RequiresProperty {
You can’t perform that action at this time.
0 commit comments