Package com.google.auto.factory
Annotation Type AutoFactory.AnnotationsToApply
-
@Target(ANNOTATION_TYPE) public static @interface AutoFactory.AnnotationsToApply
Specifies that an annotation should be used to determine how to annotate generated AutoFactory classes. For example, suppose you have this annotation:@AutoFactory.AnnotationsToApply
@interface
ApplyImmutableAndSuppressWarnings { Immutable immutable() default @Immutable; SuppressWarnings suppressWarnings() default @SuppressWarnings("Immutable"); }@ApplyImmutableAndSuppressWarnings
@AutoFactory
public class Foo {...}FooFactory
would look like this:@Immutable
@SuppressWarnings("Immutable")
public class FooFactory {...}@ApplyImmutableAndSuppressWarnings
( immutable = @Immutable, suppressWarnings = @SuppressWarnings("Immutable"))@AutoFactory
public class Foo {...}suppressWarnings = @SuppressWarnings({"Immutable", "unchecked"})
, etc, to specify a value different from the default.