Package com.google.auto.service
Annotation Type AutoService
-
@Documented @Retention(CLASS) @Target(TYPE) public @interface AutoService
An annotation for service providers as described inServiceLoader
. The annotation processor generates the configuration files that allow the annotated class to be loaded withServiceLoader.load(Class)
.The annotated class must conform to the service provider specification. Specifically, it must:
- be a non-inner, non-anonymous, concrete class
- have a publicly accessible no-arg constructor
- implement the interface type returned by
value()
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>[]
value
Returns the interfaces implemented by this service provider.
-