google / google/auto

AutoFactory: allow annotating factories

Open
#101 7 comments 0 reactions 0 assignees View on GitHub
Component: factory P3 type=addition
Dominant language
Java
Stars
10.6k
Forks
1.2k
Avg merge
6h 32m
Merged PRs (30d)
13

Description

My manually-written factories sometimes have annotations to allow some compile-time validating.
Would be awesome if I could write

@AutoFactory(annotate = BlaBlaAnnotation)
public Foo();

to have this generated:

@BlaBlaAnnotation
class FooFactory {}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.