File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
simple-component/src/main/java/io/jbock/simple Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 44import java .lang .annotation .Target ;
55
66import static java .lang .annotation .ElementType .TYPE ;
7- import static java .lang .annotation .RetentionPolicy .RUNTIME ;
7+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
88
99/**
1010 * Annotates an interface for which a dependency-injected
2727 * </ul>
2828 */
2929@ Target (TYPE )
30- @ Retention (RUNTIME )
30+ @ Retention (SOURCE )
3131public @interface Component {
3232
3333 /**
34- * A factory for a component.Components <em>may</em> have a single nested {@code interface}
34+ * A factory for a component. Components <em>may</em> have a single nested {@code interface}
3535 * annotated with {@code @Component.Factory}.
3636 *
3737 * <p>A factory is a type with a single method that returns a new component instance each time it
4747 * </ul>
4848 */
4949 @ Target (TYPE )
50- @ Retention (RUNTIME )
50+ @ Retention (SOURCE )
5151 @interface Factory {
5252 }
5353}
Original file line number Diff line number Diff line change 44import java .lang .annotation .Target ;
55
66import static java .lang .annotation .ElementType .METHOD ;
7- import static java .lang .annotation .RetentionPolicy .RUNTIME ;
7+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
88
99/**
1010 * Annotates <em>static</em> methods of a {@linkplain Component component}
1616 * implementation will pass dependencies to the method as parameters.
1717 */
1818@ Target (METHOD )
19- @ Retention (RUNTIME )
19+ @ Retention (SOURCE )
2020public @interface Provides {
2121}
You can’t perform that action at this time.
0 commit comments