1 16 17 package com.google.inject; 18 19 import static java.lang.annotation.ElementType.CONSTRUCTOR ; 20 import static java.lang.annotation.ElementType.FIELD ; 21 import static java.lang.annotation.ElementType.METHOD ; 22 import java.lang.annotation.Retention ; 23 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 24 import java.lang.annotation.Target ; 25 26 52 @Target ({ METHOD, CONSTRUCTOR, FIELD }) 53 @Retention (RUNTIME) 54 public @interface Inject { 55 56 65 boolean optional() default false; 66 } 67 | Popular Tags |