Package com.google.auto.service
Annotation Type AutoService
-
@Documented @Retention(SOURCE) @Target(TYPE) public @interface AutoService
An annotation for service providers as described inServiceLoader. TheServiceProviderProcessorgenerates the configuration files which allows service providers to be loaded withServiceLoader.load(Class).Service providers assert that they conform to the service provider specification. Specifically, they must:
- be a non-inner, non-anonymous, concrete class
- have a publicly accessible no-arg constructor
- implement the interface type returned by
value()
-
-
Element Detail
-
value
Class<?> value
Returns the interface implemented by this service provider.
-
-