Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame] | 1 | package aQute.bnd.annotation.component; |
| 2 | |
| 3 | import java.lang.annotation.*; |
| 4 | |
| 5 | @Retention(RetentionPolicy.CLASS) |
| 6 | @Target(ElementType.METHOD) |
| 7 | public @interface Reference { |
| 8 | String RNAME = "LaQute/bnd/annotation/component/Reference;"; |
| 9 | String NAME = "name"; |
| 10 | String SERVICE = "service"; |
| 11 | String OPTIONAL = "optional"; |
| 12 | String MULTIPLE = "multiple"; |
| 13 | String DYNAMIC = "dynamic"; |
| 14 | String TARGET = "target"; |
| 15 | String TYPE = "type"; |
| 16 | String UNBIND = "unbind"; |
| 17 | |
| 18 | String name() default ""; |
| 19 | |
| 20 | Class<?> service() default Object.class; |
| 21 | |
| 22 | boolean optional() default false; |
| 23 | |
| 24 | boolean multiple() default false; |
| 25 | |
| 26 | boolean dynamic() default false; |
| 27 | |
| 28 | String target() default ""; |
| 29 | |
| 30 | String unbind() default ""; |
| 31 | |
| 32 | char type() default 0; |
| 33 | } |