001package sting;
002
003import java.lang.annotation.Documented;
004import java.lang.annotation.ElementType;
005import java.lang.annotation.Retention;
006import java.lang.annotation.RetentionPolicy;
007import java.lang.annotation.Target;
008
009/**
010 * Annotate an interface to declare that it will be used in injector to suppress warnings due to usages of the {@link sting.Named @Named} annotation.
011 *
012 * <p>Normally a type that has a method annotated with the {@link sting.Named @Named} annotation will
013 * generate a warning if the Sting annotation processor detects that the type is not annotated with the
014 * {@link sting.Injector @Injector} annotation. This warning is generated because the annotation processor
015 * will not process the annotation and thus considers it an error.</p>
016 *
017 * @see ActAsStingComponent
018 */
019@Documented
020@Retention( RetentionPolicy.RUNTIME )
021@Target( ElementType.TYPE )
022public @interface InjectorFragment
023{
024}